Click here to Skip to main content
Page 1 of 57
Page Size: 10 · 25 · 50


Author filtered by: «_Superman_» [x]
Re: overloading in C++ by «_Superman_»
Forum Message 12 May 2013  
Overload the operators inside the struct. «_Superman_»  I lo
Re: overloading in C++ by «_Superman_»
Forum Message 11 May 2013  
struct and class are the same in C++. Only difference is that, by default, class members are private and struct members are public.
Re: HOW to make GUI in C++ by «_Superman_»
Forum Message 10 May 2013  
Pure C++ does not support creating GUIs. C++ is meant for creating optimized, reusable libraries. However, you can use some frameworks or libraries that are based on C++ like MFC as David m
Re: overloading in C++ by «_Superman_»
Forum Message 10 May 2013  
Assuming x is an object of type X, you will need to overload the == and != operators in class X. class X { bool operator ==
Tokenization of string by «_Superman_»
Answer 8 May 2013   license: CPOL
This is not possible with strtok because this function inserts a NULL character at the end of the token.You could do the following to get what you want - pch = strchr(TempStr, ' ');pch = strchr(pch + 1, ' ');pch = strchr(pch + 1, ' ');pch = strchr(pch + 1, ' ');Another thing I...
Forum Message 7 May 2013  
I'm not completely clear of your requirement, but I guess my earlier solution should work for you. What I mean by override is to create a new class that derives from CPropertyPage, write
Dynamic GUIDS @ build time? by «_Superman_»
Answer 6 May 2013   license: CPOL
Try this -#ifdef _WIN64const GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x64 } };#elseconst GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x32 } };#endif
Answer 6 May 2013   license: CPOL
Yes, this would work as you want it to.With the KEY_WOW64_64KEY flag, your 32-bit application would be using a 64-bit view of the registry.
C++
Forum Message 6 May 2013  
Override CPropertyPage::OnSetActive[
Forum Message 5 May 2013  
You can expose the C# code as a COM interface and then use the assembly from native C++ just as you would use a COM component. This is one of the solutions proposed to you by Richard. Here
Forum Message 5 May 2013  
The API is only supported from Windows Vista and above. So you need to define the following macros as below - _WIN32_WINNT = 0x0600 WINVER = 0x0600
Forum Message 2 May 2013  
The new CMFCMenuBar class already does this for you. To use this class you will need Visual Studio 2008 with Feature pack or VS 2010 and later.
Forum Message 2 May 2013  
Yes, it is possible to do this using pipes. Here is an example of how this can be done - Creating a Child Proc
Forum Message 2 May 2013  
Pass the pointer value to SetItemData by type casting it to DWORD_PTR. When reading it back you will need to type cast it back to the original pointer type.
Forum Message 2 May 2013  
You would need to make your application DPI Aware. Here is the documentation - Writing High-DPI Win32 Applicat
Forum Message 28 Apr 2013  
Download Visual Studio express as replied earlier. In that you need to create a project. There are several types of projects in Visual Studio. Here is a simple tutorial -
Forum Message 23 Apr 2013  
SendMessage is the right way to avoid deadlocks. This way all requests from any thread is always queued in the UI thread message loop. So keeping all locks local to the message handlers
Answer 22 Apr 2013   license: CPOL
Use LoadImage[^] to load an image from file to memory.You can then use GDI functions like BitBlt[^] to display the image from memory to the device context of a window or printer.You can also use GDI+[^] for this.
C++
Forum Message 22 Apr 2013  
It is always recommended to use SendMessage to the UI thread so that the UI thread controls/manipulates its UI elements. In some cases it may not be necessary like, for example, the docu
Answer 17 Apr 2013   license: CPOL
Make the Native C++ workspace as the startup project.In Release mode, disable optimization from Project -> Properties -> Configuration Properties -> C/C++ -> Optimization.Set the break point and press F5.When it asks for the executable, browse to the EXE that loads this DLL.
Answer 17 Apr 2013   license: CPOL
When you watch a CMap variable, you will see a m_pHashTable member.This hash table has a pNext member.You need to keep following pNext until its value is NULL to see all the items in the map.
Answer 17 Apr 2013   license: CPOL
Inter process communication is not allowed for Windows Store apps.Store apps are designed to be isolated.The only other way is by using the explicitly defined contracts like Search, Share etc.Read about the contracts here - App contracts and extensions[^]
Answer 17 Apr 2013   license: CPOL
Inter process communication is not allowed for Windows Store apps.Store apps are designed to be isolated.The only other way is by using the explicitly defined contracts like Search, Share etc.Read about the contracts here - App contracts and extensions[^]
Forum Message 17 Apr 2013  
Controls cannot be locked. The reason for it not working is definitely something wrong with the code. So as Richard said, we need to see it.
Forum Message 17 Apr 2013  
For Windows, you can do this using a Storage Filter Driver. You will find the following link useful - Stor
Forum Message 15 Apr 2013  
I guess you need VS 2012 Ultimate to get the full code map feature. I tried this with VS 2012 Update 2 and it sure works. «_
Answer 2 Apr 2013   license: CPOL
You can use the SetWindowsHookEx[^] API to install a WH_CALLWNDPROCRET[^] hook.This will call the specified callback function after any window has been moved or resized.
Forum Message 6 Mar 2013  
If you're using MFC, you can find an option in the project wizard called Multiple top-level documents under Application type. If not, what you need to do is to create a new
Answer 5 Mar 2013   license: CPOL
Use the CreateProcess API to start the application.In the STARTUPINFO structure passed into CreateProcess, hide the window using the STARTF_USESHOWWINDOW and SW_HIDE flags.After CreateProcess succeeds, you will get the handle to the main thread in the PROCESS_INFORMATION structure.Use this...
Forum Message 5 Mar 2013  
The SND_ASYNC flag plays the sound without interrupting other threads. How do you measure that the other threads are interrupted? In which thread is the PlaySound function
Forum Message 3 Mar 2013  
I'm not sure if this is relevant to you, but you can call bind[
Forum Message 1 Mar 2013  
I used this tutorial - MFC Feature Pack Tutorial – Part 3 – CMFCPropertyGridCtrl[
Re: MFC Programming by «_Superman_»
Forum Message 1 Mar 2013  
Ideally, for learning C++, you do not need a GUI. You can simply the console message using cout. If you still need a GUI, MFC is the best bet for native C++. ATL also has window classes and there
Re: InitInstance() Problem by «_Superman_»
Forum Message 26 Feb 2013  
Normally, the CMainFrame object is constructed in the InitInstance method using the call - pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUN
Re: Build for 64bit by «_Superman_»
Forum Message 23 Feb 2013  
VS 2003 does not support the 64-bit compiler out of the box. You can however, install the latest Microsoft SDK and use the 64-bit compiler that comes along with it. But it is recommended to go for V
Forum Message 18 Feb 2013  
There are many problems in your code. The main problem that I see is the typecast to LPCTSTR. I've said it before and I will say it again - Typecasting is evil. Here is a samp
Forum Message 15 Feb 2013  
Thanks Sandeep, It worked perfectly. «_Superman_»  I love
Re: win32 dialogbox by «_Superman_»
Forum Message 12 Feb 2013  
The third parameter to DialogBox is still NULL - DialogBox((HINSTANCE)g_hinst, MAKEINTRESOURCE(IDD_DIALOG1),NULL, InputBox_WndProc); You need to specify
Forum Message 11 Feb 2013  
I suspected some configuration issue here because the machines were used a lot before and so installed a fresh copy of Windows 8 and Visual Studio 2012. Now I'm able to get it to work. Thanks for yo
Forum Message 11 Feb 2013  
I'm definitely missing something. It still gave me the same behavior. So to make sure, I used Windows 8 and Visual Studio 2012. I created a new application and it still gave me the same behavior
Re: win32 dialogbox by «_Superman_»
Forum Message 11 Feb 2013  
Post the code please. «_Superman_»  I love work. It gives me
Re: win32 dialogbox by «_Superman_»
Forum Message 11 Feb 2013  
The third parameter which is the parent is given as NULL. Set the parent to the desired window to make it modal. «_Superman
create setup for my software by «_Superman_»
Answer 11 Feb 2013   license: CPOL
For Windows packages you can use WiX which is free.WiX Toolset[^]WiX Tutorial[^]
C++
Re: win32 dialogbox by «_Superman_»
Forum Message 11 Feb 2013  
Why do you say that it behaves like a modeless dialog? Are you able to switch back to the parent dialog when the modal dialog is shown?
Forum Message 10 Feb 2013  
It would help if you could post the code in your function and some of the generated assembly code. «_Superman
Forum Message 9 Feb 2013  
My Application_Error contains 3 lines - Server.GetLastError, Server.Transfer and Server.ClearError. I tried removing all these lines and simply put
Forum Message 7 Feb 2013  
Application_Error exists in Global.asax. Most of the unhandled exception are caught here. While testing, I changed the name of a stored procedure to something that doesn't exist in the database.
Forum Message 1 Feb 2013  
You have to format the filename string. Also need to allocate memory to it. char filename[1024]; sprintf(filename, "%s\\EUR_PR_01302013.txt", current_dir);
Forum Message 1 Feb 2013  
You can use the Dependency Walker tool to check the dependencies of your DLL - http://www.dependencywalker.com/[
Forum Message 29 Jan 2013  
What do you mean by modeless? In all MFC dialog based apps, the main dialog acts just like a modeless child dialog. «_Super

Page 1 of 57
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid