How do I create,load,modify,delete a registry key?
First,I did look over the functions,but those arguments are a jungle.Can someone provide me an example that:Checks to see if the key was created,if it was,retrieve it,if not,create itModify the key...
View ArticleATL using struct in x64
I have a ATL project using MFC in vs2008, and I defined two struct in .idl, then wrote a function to return it. When I build it to win32, it works perfect, but when I build it to x64, the struct data...
View Article[SOLVED]CMFCRibbonSpinButtonCtrl, how do I access it?
I have a SpinControl added to my ribbon, but it seems as though the Ribbon Spin control is defined differently than all the other accessible ribbon controls. I just want to get the current value it...
View Articlemssoap30.tli(642) : error C2440: 'return' : impossible de convertir de...
Hi,I use SOAP, in my application#import "C:\\Program Files\\Common Files\\MSSoap\\Binaries\\mssoap30.dll" exclude("IStream", "IErrorInfo", "ISequentialStream", "_LARGE_INTEGER", "_ULARGE_INTEGER",...
View ArticleTo dynamically refer to each field
Hi, For this record belowstruct record { char fld01_nm[30]; float fld01_val; char fld02_nm[30]; float fld02_val; char fld03_nm[30]; float fld03_val; }; I need to see one example which is having the...
View ArticleHow to add a tooltips in a dialog based window added to an activex control.
Hi peopleI have a dialog based window added in an activex Project named CEthernetShow. I need to add a tooltip to this window and I find a sample on sitehttp://support.microsoft.com/kb/141871/en-us,but...
View Articleerror LNK1104: cannot open file 'ÿþ/.exe on Visual Studio Express 2012
I know there are several similar posts but few are being answered, and the solutions i found doesnt work for me.This problem only started after i repaired windows. I was using Visual Studio Express...
View Articlememory leak for GDI objects in VC++
Hi, I want to know how to debug gdi(gdi+) object leak in release!Regards
View Articlecomponent VC++ : *IUnknown->Release() is working in mode debug but crashes in...
I release my components with it's *IUnknown1) IUnknown->Release() seems to work well in mode debug but crashes in mode release.(after le AfxOleUnlockApp, by deletion of the com)2) other symptom,...
View ArticleCreateThread return GetLastError 8
Application loads dll. Inside DllMain there is a code:HANDLE ht = CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)Main, NULL, 0, &tid);hThread is NULL and GetLastError return 8.
View ArticleNeed ideas
hello there i need idea/tasks for what to make... I would like something challenging but not to hard.... I only know if statements, while loops, for loop, functions, multiple functions, parameters....
View ArticleIP Helper problem
Hello,Using VS 2012 (C, C++), I can use some of the IP Helper APIs, but some gives me compilation errors.For example, GetAdaptersAddresses(...) the compiler doesn't recognize the API nor its structures...
View ArticleHow safe if runas with ShellExecute?
Hi, I have some administrative tasks in my app. What I do is I restart the application (with a special argument to perform the wanted task) with ShellExecute and the verb "runas". However, how safe is...
View Articleprobing for system information
when I developed some code a while I ago I added the ability to identify the CPU being used as well as the amount of physical memory availableso I was wondering if any other tidbits like the...
View ArticleWhat's the name of this control?
Hi, I want to know the control's name or demo!Regards!
View Articlegethostbyname() problem under Windows 7.
I have an application that was written for Windows XP. It has a full set of unit tests. When I run the unit tests under Windows 7, several of the tests fail. All unit tests passed under XP.I am...
View Articlehow to write contents (an object of a class) to a specified location of a file?
there is a file(test.txt) in which to write objects(instances of personally createdclass "record"). I plan to use a member of my record class: "int user_id" as the key. Then i use this as...
View ArticleThere is no vs2012 c + + windows forms application?
In vs2012 in and can not create a c + + for windows forms application, but in In vs2010 can, how can we in vs2012 to create a windows form application do?sorry,I'm from china so my English is not good.
View ArticleWhat's wrong with this?
##include <iostream>using namespace std;int main () {int a=56, b;cout<<"Enter password.";cin>>b;if (a==b){cout<<"You're verified!";}int x;else {for (x=0; x<=3;x++)...
View Articlecan data structures and file handling be merged (using data structures within...
i have a file(.txt) in which i write objects(instances of personally createdclass "record"). But i wish to store these objects in the file on the basis of a hash function(in normal case, we wouldstore...
View Article