Read a Value from another Class
Hi All,I’m working on Visual Studio 2010 C++ with MFC.I’ve got the following very simple C++ problem.I’ve got a class (First_Class) that when opening a new dialog it enters a new class (Second_Class),...
View ArticleLoadLibraryExW and LOAD_WITH_ALTERED_SEARCH_PATH question!
Hi All, I have one problem with LoadLibraryExW! I want use it to load a plugin(Dll0 on specific folder, thrn I use flag: LOAD_WITH_ALTERED_SEARCH_PATH Like this: DWORD flags(0); flags |=...
View Articlestd::map - returning .second by reference
Hi,I have a template class which has a std::map<_Key, _Type2> as a member. Something like:template <class _Type1, class _Type2, class _Key> class MyTemplateClass { // other stuff // _Type1...
View ArticleLogging unmanged/managed c++
Hi, Currently I'm developing an unmanged/managed c++ application with a Windows Form (that's way it is a mixed application) and want to build in some logging. Now I have seen libraries like: log4cplus...
View ArticleHow to get message OnUpdateCommandUI from CMFCRibbonBar at DLL
Hi. I have an SDI application (EXE), with its RIBBON. This application have plugins as DLL. In these plugins I have created an CFrameWnd, with another CMFCRibbonBar... My problem is... I dont get...
View Articleclass Win32_BaseBoard : CIM_Card
so far I have this:HRESULT getMBstring(void) { HRESULT hr; hr = CoInitializeEx(0, COINIT_MULTITHREADED); if (FAILED(hr)) { std::cout << "Failed to initialize COM library. Error code = 0x"...
View Articlekeep Window z-order unchnaged
i have a tool window dialog which is not showing in task bar. i want to make the z-order of that dialog to top of all non topmost windows/(same asHWND_NOTOPMOST).And i want to make that z-order...
View ArticleError: C++ DLL call from C# giving error: “Attempted to read or write...
I have 2 DLLs. One is PrimaryDLL.dll and the other is DLLWrap.dll. The PrimaryDLL has an object a function named DiversifyKeyset which is decalred like so in the class constructor: static...
View ArticleAttachment data type in Access Database using ODBC
Hello All, We are trying to develope Visual C++ Application which communicate with ODBC Database. We retrieve Data from database and modify(Add, Update, Delete) data in database using ODBC API. MS...
View Articledetect multiple video cards
been expanding the capability again, but the video card ID nowso now to figure out how many of themnot so sure what is wrong with my call to get that informationstd::string getGPUstring(void) { //...
View ArticleHow to active SetWindowsHookEx after unlock screen?
I'm writing an app that use global hook. Any thing is ok. But after lock windows (Windows + L) then login again, my hook function dont work any more. That I want after I login again, my hook function...
View ArticleKilling a process created with spawnl
I create a new process via spawnl(). The main program and child process run fine. If I want to abort a calculation, I can stop the main process with a "stop" button, but the child keeps running. Is...
View ArticleGet device details on device plug-in
Hi Consider I have already installed a USB speaker in my system.Now I run the following code:I need device details when I plug my USB speaker, specifically I need hardware id when I plug it.The code...
View ArticleCan't Open Desktop Apps made in Visual Studio !
Hi, There is a problem, I recently created some applications in VB 2012 (Desktop Version), but after upgrading to Windows 8.1 Pro Preview, they can't be opened. The same happend when I upgraded my pc...
View ArticleSet text in TextBox from .cpp file
How do I set the text of a textbox from another class then from the form.h file? The application is made in Visual Studio 2012 c++
View Article__itoa(getCPUclock(), temp2, 10);
seems to not want to cooperateCString outstring;outstring += getMBstring().c_str();outstring += "\n";outstring += getCPUstring().c_str();outstring += " running at ";char * temp2 =...
View ArticleSeparating C++ source program into separate files
I have built a fairly complex VS C++ program which works perfectly. My problem is that the single source file is fairly long and, since I am planning to add further features, it would be convenient to...
View Articledevice ID and hardware
while working on some code to identify the graphics card, no major headache but when I have 2 of them on my box I figured it should not be too tricky to identify multiple video cards? I wish;I have 1...
View ArticleWindows Forms Application in C++ Help!
Hi,I am trying to declare a datapoint to be able to autoscale using a checkbox on a chart. I used the datapoint on a previous program and got it to work, but I don't understand why I am getting a...
View ArticleWindows VC++ System::Timer :Event
I have a Button Click event handler that I call directly from a System::Timer elapsed event. I changethe values of other TextBox objects during the event which do not show my changes. When I was...
View Article