Hi, Is it possible to set the file version to dynamically generated vb 6 exe in C#? Any links/source code would be a great help. Thanks in advance
subramanyeswari
Posts
-
setting the file version -
C2664 errorI am building legacy application in VS2008 solution. I have the followng lines in my code
template <class MapType, class DestinationType = MapType::referent_type>
class MapCopy
{
public :
typedef DestinationType destination_type;
typedef typename MapType::value_type source_type;
static HRESULT copy(destination_type* pTo ,source_type *pFrom) //here i am getting C2664
{
}on building this project i am getting the following error error C2664: copy' : cannot convert parameter 2 from 'const std::pair<_Ty1,_Ty2> *' to 'std::pair<_Ty1,_Ty2> *' C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlcom.h How to getrid of this error? Regards
-
error C2143: syntax error : missing ',' before '*'This is the definition
template <class MapType, class DestinationType = MapType::referent_type>
and source type is defined as
typename MapType::value_type source_type;
what is wrong here?
-
error C2143: syntax error : missing ',' before '*'Hi, I am compiling the legacy code in VS.Net 2008 64 bit platform. I am getting the above error in the following line
static HRESULT copy(destination_type* pTo , const int source_type* pFrom)
how to resolve the above error? Please help me Regards
-
Visual Basic script errorHi I have the following line in my vbscript
set dllreg = "wscript.shell"
dllreg.run "regsvr32 /u C:\Program Files (x86)\histori.dll"it is coming out saying "Loadlibrary C:program" failed how to give c:\program files (x86) for that. Also i want it to run silently. How to do that? Please do let me know
-
porting 32 bit dll in 64 bitis this the following code that i have to make in stdafx.h
#ifndef _WIN32_WINNT NTDDI_VERSION
#define _WIN32_WINNT NTDDI_VISTASP1
#endif#ifndef _WIN32_IE
#define _WIN32_IE 0x0700
#endifafter making the above change i am getting the following error error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h it is failing here #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1)) #error _WIN32_WINNT settings conflicts with _WIN32_IE setting #endif I am working on vistasp1 what could be the problem Regards
modified on Friday, February 13, 2009 10:22 AM
-
porting 32 bit dll in 64 bitHi Sarath, I created the application by following the below link http://www.codeproject.com/KB/shell/shellextguide1.aspx?fid=519&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2469014#modifyingmenu[^] but the same is not working in my 64 bit windows 2003 server. How to migrate this application? Regards
-
Invoking .Net DLL [modified]the .Net dll i think it is written in .Net 1.1. Invoke means when i am instantiating class I am getting the error. Wscript.createobject("NetClass.cls").. here it is failing. it is giving "could not create object" error. Regards
-
Invoking .Net DLL [modified]Hi, How to invoke a .Net dll from vb script. While creating the object it is giving the Automation error. My OS is 2000 with .Net framework 1.1. The same script is working on another machine(configuration 2003R2 .Net framework 3.5). Regards, Subramanyeswari
modified on Wednesday, February 4, 2009 1:06 AM
-
porting 32 bit dll in 64 bitthanks.. i will do that now.
-
porting 32 bit dll in 64 bitHi, Thanks for your suggestion. I ran dependency walker in 2003 64 bit for my dll. it displayed two errors in the following dlls DEVMGR.DLL DWMAPI.DLL. it says "error opening file". Don't we have these dll's along with 64 bit 2003 os? Regards
-
porting 32 bit dll in 64 bitHi, I run the program as administrator. Then I tried compiling solution in the vista 64it. It gave “error PRJ0019: A tool returned an error code from "Performing registration"”. When I comment the following code
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE); //this is what I commented
return TRUE}
it compiled successfully. This is com dll which is working fine in 32 bit. what should i do now? Regards, Subramanyeswari
-
porting 32 bit dll in 64 bitthanks. I am facing a different problem. when i am registering dll in vista 64 bit as administrator user i am getting the following error call to DllRegisterServer failed with error code 0x80020009 when searching in the google it says that permission problem. What is that exactly? how to resolve? Thanks in advance Regards,
-
porting 32 bit dll in 64 bitHi, I have a .reg file which copies some menu items as keys in the registry. My dll collects all of them and show up on right click if i selected any thing on the explorer. How to make my 32 bit com dll works in 64bit machine? I recompiled in 64 bit machine using visual studio 2008. It did not show up the right results. it is not showing up any menus on the right click. Thanks in advance. Regards,
-
automation errorwhen i am compiling my vb6 project i am getting automation error. I looked it up in the google but did not find much help. What is the reason for getting this error? Please help me Regards
-
caspol.exethank you
-
caspol.exeHi, Where will i find caspol.exe for 64 bit? Thanks in advance, Regards, Subramanyeswari
-
CreateKey returned 6Hi, I am using the following script to write key and values into registry using vbscript. this is my code
strComputer = "."Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")keyPath = "*\shellex\ContextMenuHandlers\WWBuildShell64Ext"Return = oReg.CreateKey HKEY_CLASSES_ROOT ,keyPath If (Return = 0) And (Err.Number = 0) Then Wscript.Echo "HKEY_LOCAL_MACHINE\Software\MyKey\MySubKey created"Else Wscript.Echo "CreateKey failed. Error = " & Err.NumberEnd If
It is retuning 6. What does it mean? how to correct it? Please help me. Thanks
-
CreateKey returned 6Hi, I know this is not the right forum but as i could not see vb forum i am posting here. I wrote small vbscript function to add registry key and value. here is the script.
strComputer = "."
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
keyPath = "*\shellex\ContextMenuHandlers\WWBuildShell64Ext"
Return = oReg.CreateKey HKEY_CLASSES_ROOT ,keyPath
If (Return = 0) And (Err.Number = 0) ThenWscript.Echo "HKEY\_LOCAL\_MACHINE\\Software\\MyKey\\MySubKey created"
Else
Wscript.Echo "CreateKey failed. Error = " & Err.Number
End Ifit is returning 6. What does it mean? how to solve this? Regards,
-
Internal Compiler Errorthere is no main.c in my project. The line that is giving error is in a cpp file