If u put it this way, then, it is how to encode and decode the data.
But remembering that I can’t use the serialization option that .net gives me.
Meaning, converting a structure to a Byte array and the other way around.
Actually I am facing the problem that I am not being able to use the templates in managed c++.net code.But the unmanaged code uses the templates.Is there a way out in the dot net to use the templates in managed c++ code.
There is also one more problem that in my unmanaged c++code i have been using the multiple inheritance and multiple inheritance is not supported in managed c++ .net.And If I use the interfaces then the interfaces don't contain data.Is there a way out.
I have a need to automate a portion of a web page login. I have developed a small API based on WEBBrowser2 and CSharp. I can send click events or fill in edit boxes etc with items that are available within the HTML page being viewed. There is an issues however, when Frames are introduced. If an HTML page has a Frame in it, I cannot call the Navigate method successfully withing WebBrowser2 because it thinks it is on the root page not the Frame. Is there a way to itterate through the available frames on a page and call events on particular Frames. For example if there was a button in a Frame, how would one Navigate to that frame and activate that button?
I have an NT Service program written with VC++ 6.0 as ATL/COM components that runs on W2K or XP. Now I want to upgrade to VC++ 2005 but not sure where to start. It has nothing at all to do with the web, just processes database requests from clients on wireless scanning devices. The wireless device needs some data from a database, calls my service which processes the request, formats the data for the device then returns the formatted data all through various COM calls.
I guess my question is: is there any advantage to migrating to VC++ 2005 other than getting a new compiler? Are there any books you would recomment that might help me migrate the program to managed c++?
I have written a WndProc() function that detects the insert and removal of a USB drive and
want to pull out the specific LParam values to get the name of the drive and other info.
The examples I've found so far use a particular C# code that goes like this...
public struct DEV_BROADCAST_VOLUME<br />
public int dbcv_size;<br />
public int dbcv_devicetype;<br />
public int dbcv_reserved;<br />
public int dbcv_unitmask;<br />
protected override void WndProc(ref Message m)<br />
const int WM_DEVICECHANGE = 0x0219;<br />
const int DBT_DEVICEARRIVAL = 0x8000; // system detected a new device<br />
const int DBT_DEVTYP_VOLUME = 0x00000002; // logical volume<br />
//we detect the media arrival event<br />
if (m.Msg == WM_DEVICECHANGE && m.WParam.ToInt32() == DBT_DEVICEARRIVAL)<br />
int devType = Marshal.ReadInt32(m.LParam,4);<br />
if(devType == DBT_DEVTYP_VOLUME)<br />
DEV_BROADCAST_VOLUME vol;<br />
vol = (DEV_BROADCAST_VOLUME) Marshal.PtrToStructure(m.LParam,typeof(DEV_BROADCAST_VOLUME));<br />
base.WndProc (ref m);<br />
And I've been trying to get the LParam into my structure like this:
This continues to not work in MC++.
For some reason I cannot find a viable alternative to the C# code in MC++. My errors include
the dreaded run-time:
"The specified structure must be blittable or have layout information..."
among other more standard compile errors for instantiating the structure incorrectly.
I know theres a way to do this but havent found it yet.
Any help you all could be would be greatly appreciated!
I have to create a GUI which control the camera.in my GUI i need to create a mouse stick which controls the camera like rotate left or right. but i get stuck on the mouse stick.In order to create this mouse stick where should i start.
Hey guys, I am trying to understand some codes and came across this.
In the code below, I don't know if its a pointer to RTIambassador object. I don't see why there is RTI:: in front of RTIambassador* and also ms_rtiAmb is not a method of class ObjectRoot. I don't see why they have ObjectRoot:: in front of ms_rtiAmb.