I am trying to allocate memory of more than 2GB using the system boot flag /3G and also i set the linker option /LARGEADDRESSAWARE. This should let me have atmost 3GB of allocation. After doing that, i try allocating slighly more memory than 2GB
BYTE* m_pDIB = (BYTE *)VirtualAlloc(NULL, (size_t)0x81000000, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
UINT32 ui32Err = GetLastError();
printf("\nVirtualAlloc(NULL, (size_t)0x81000000, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); Results: Address is %Xh and error is %d", m_pDIB, ui32Err);
I have also set the system virual memory(swap) to have bigger size than 3GB.
The error code returned is ERROR_NOT_ENOUGH_MEMORY with the VirtualAlloc returning NULL.
Any help in this regard would be greatly appreciated.
But if i try to do it programmatically then i am not being succeeded in that. I made all three registry entries(AutoAdminLogon, DefaultUserName, DefaultPassword) correctly through programming as mentioned in manual steps in above link. If i do it manually it works.
But somehow it is not happening. can anyone please throw some light on this? It would be a great help to me. Please help me out.
When you add those value through code, can't you just open the registry and see if they are correct? The registry does not care how keys and values are created. If they are correct, something else other than your code is wrong.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
I have to use a smoothing algorithm in my COde. I am using Visual C++ .Net 2008 with 3.5 framwork.
I am reading a data through serial port from a target device and this data is store into a XML file. I have to display(plot) this data on the window. For ploting the waveform, i read the data from the XML file, and draw(Plot) the point using "Drawline" function. but the curve generated is not in Smooth shape. It shows some noise(like steps).So in this case I want to use smoothing algorithm but dont know how to use it.So plz can anyone tell me how to use smoothing algorithm? its urgent so plz help me out.
Hi! I am asked to code an asynchronous non-blocking echo server in C++ that compiles in both Windows and Unix platforms. Having no background in networking, I don't know where to start. Any help would be appreciated. Thank you.
I'm having a hard time understanding this code. Can someone familiar with this code help me out in understanding how the code works? Really sorry because I'm not really familiar with network programming. Thank you.
I am not clear as to whether you always need to declare a session class to be able to use asynchronous read and write functions? And also I'm not really that clear about the flow of the program. Thank you and any help would be appreciated.
It depends on your requirement.
If you want to modify less number of controls you can add the control variables for these controls and use them.
EnumChildWindows will enumerate all the child controls which might not be efficient if your dialog has huge number of controls and you need to alter only 4-5.
BTW: Use some relevant title for your post.. "Hi All" does not relate to your query in anyway.
my question is I want to find some external web site to do more testing, i.e. to request to access some Url, and if supply with the correct .Net Passport credential, the authentication will pass, if not the authentication will not pass. My confusion is I tried some ones, but seems are all Http Forms based authentication.
Could anyone suggest some web sites?
thanks in advance,
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-23 9:27