try sending the second parameter as widechar L"VPCI" or as BSTR. and if the last parameter is string, do not send as 0. try sending NULL or empty string L"".
^-^ @|@ - redCat
try sending the second parameter as widechar L"VPCI" or as BSTR. and if the last parameter is string, do not send as 0. try sending NULL or empty string L"".
^-^ @|@ - redCat
hi, could you please be more specific on this? 1) check you called the CoInitialize() and the component is register in the machine and the instance is created properly. 2)check the component created and being accessed are on the same thread.
^-^ @|@ - redCat
hi Ravi, your question tells you are a beginner to WWF. also, WWF does not have to do anything about database connections. learn ADO.net to know this. Essential Windows Workflow Foundation with Addison wesley publications is a good book to start with WWF.
^-^ @|@ - redCat
Hi, Basically COM+ = COM + MTS (microsoft tranaction server). COM+ is built using Aspect Oriented Design. Aspect oriented design are like some aspects(security, pooling etc) that you can use from the framework and not required to progrm by yourself. this is what COM+ provides once you create a COM+ application and register you componet with that.
^-^ @|@ - redCat
hi, if you are trying to create an ActiveX control at runtime , be sure that you are calling the AfxEnableControlContainer() of method. and CoInitialize() also. call these functions in OnInitIntstance()/CWinApp hope this works!
^-^ @|@ - redCat
hi, try to learn how to program it as a Automation client and DCOM. you do not need the signature information about the COM server if you go by this way!
^-^ @|@ - redCat
Hi, I guess you need to be more clear with your requirements. else you drop in such situation. you could full fill your requirement by exposing c++ static methods. what makes to do this thru COM. COM is full if dynamic bindings. and VB shared stuff is full of static things that are decided at compilation.....
^-^ @|@ - redCat
Hi, Can you please provide the method signature that you want to access? you cannot send the structure just like that to a method in COM. Only you can pass the arguments that are agreed in the IDL of the COM server. you can find the signature using the OLE VIEWER.
^-^ @|@ - redCat
This is an issue with the Threading Model.your ocx might have an ui, which the console cannot display. if you are sure that does not have any ui, try registering with the COM+ and try to use from your console.
^-^ @|@ - redCat
Hi, i can suggest a simple solution for the problem. you can check the value returned from your dll and open the file using .net classes.
^-^ @|@ - redCat
Hi manu, try passing BSTR or unicode strings as the parameter value. do not pass strings like "" etc, give some value like L"myValue".
^-^ @|@ - redCat
simply #include the header file and put the .lib file in the linker section. if u do not have the header file but you know the signature then use [DllImport] to call the methods from the dll. first one is the easiest way.
^-^ @|@ - redCat
hi, i am using Visual C++ toolkit 2003. i am writing a windows forms application. if i click a button , it has to call an win 32 api from windows.h, say MessageBox(), i included #include windwos.h now it is giving an ambiguity error WinMain is already defined, how to get out of this, even i tried the order of #using mscorlib.dll # include windows.h // i am having some assumption or workarounds for this,, but i need a solution ?? // because i am intersted in discussing about this .. // warm welcome for the discussion
^-^ @|@ - redCat
hi , i want to know how to get the ip address of a machine in the network programatically, if i give the hostname. thanks - ^-^ @|@ - redCat
I have a Unmanaged Dll. signature of the function is : Err_code f1(char** return_name); what marshal types can i use for this? the eq unmanged code is : char* name = NULL; f1(&name); printf("%s",name); i do not know how to use the marshal types for this situation? thanks in advance :) ^-^ @|@ - redCat
hi all, i need to call a function in an unmanaged dll say ERR_CODE MyUnmanagedFn( char** param); the memory of the param is managed by the dll itself. the unmanaged code to use this is char* XX = NULL; MyUnmanagedFn(&XX); // this is working fine. this memory is allocated and released sometime later automatically by the dll. now, i an facing some problem calling this function from Managed c++. the ERR_CODE returned is NULL_PARAMETER. ideally means that the paramter is NULL. what is the equivalent MC++ code for this? ^-^ @|@ - redCat
Hi this is nothing but ActiveX. will u please send the code to me so that i can dissect it for u and give you some explainations about how each and every part of that is working. send to redcatsin@hotmail.com ^-^ @|@ - redCat
hi , your question is sooo abstract, will u please explain in detail. ^-^ @|@ - redCat
i need to register a windows service as two different services. Scenario: i have a windows service ServiceX1.exe, started with command "net start ServiceX1". i need to register and start the same exe as "net start ServiceX2" -> registered with name ServiceX2. so that these two instances take different parameters and run. also i want to know how to register the service with startup arguments with the "sc create" command. ^-^ @|@ - redCat
hi, i guess this is a simple probelem where u forgot to link with your .lib file. in the linker error you can get the function names which are not resolve. and include the .lib file in your project > settings > link > Object/Library modules. enter your .lib file name here. and rebuild all - ^-^ @|@ - redCat