Search:
Type: Posts; User: codecX
Search:
Search took 0.03 seconds.
-
July 31st, 2010, 08:03 AM
Two problems in your code:
1- use "<" instead of "=" in "for" loop:
; i < testString.length() ;
2- You should convert String to c-string easily by c_str method:
-
July 30th, 2010, 08:15 AM
your first step after initialization of CImage is using Create or load or similar methods.
Then use GetDC from that image, if you need this DC for hdcSrc in Bitblt windows API or you wanna save...
-
July 30th, 2010, 07:05 AM
you can use this method:
First you get wx and wy sizes, then use SetWindowPos to change the dialog size.
later you can estimate the needed percentage of width and height for your controls and...
-
Each control has special messages/Notification, you should always use those Notifications related to that control, check it in MSDN. WM_KEYDOWN will be posted to windows and you may receive it if you...
-
January 27th, 2009, 08:32 AM
This is my personal opinion:
1- Qt is excellent if you are not going to give licenses of your source codes, more support, price doesn't bother, ...
Also Qt is using LGPL for their next release,...
-
January 14th, 2009, 03:39 PM
If you want all of your static controls be transparent you can use the same method that mentioned in post 2 but for win32 API, especially for dialog box:
case WM_CTLCOLORSTATIC:
SetBkMode...
-
January 13th, 2009, 01:02 PM
Read below thread, I explained how to do that (you can change * to X86):
http://www.codeguru.com/forum/showthread.php?t=467722
-
January 10th, 2009, 03:42 PM
Add a sound file as a resource, so it will have an ID:
Right click on resource view and select "add resource", then import... choose "wav" and add it to the project (name its ID --> IDR_WAVE1).
...
-
January 10th, 2009, 08:01 AM
As TheCPUWizard said use .h
Also:
You do not need to copy your header files or .lib files to Include folder of VC++, put it anywhere you want and use VC++ option for that:
when project is...
-
January 10th, 2009, 07:56 AM
#include <Windows.h>
#pragma comment( lib, "Winmm.lib" ) // for PlaySound
//...
PlaySound("C:\\yoursound.wav", NULL , SND_FILENAME | SND_ASYNC);
If you use SND_ASYNC flag, then PlaySound...
-
January 9th, 2009, 07:52 PM
You can save multiples of 8 bits into a file, so you can make a rule,
for example it should be multiple of 4 bytes (as you said 40 chars that fit to this rule), and if it is less than that, make...
-
January 9th, 2009, 06:56 AM
You can get the information of the changes of size by WM_SIZE, WM_SIZING and WM_EXITSIZEMOVE.
Then by the help of that use MoveWindow or SetWindowPos to change the size of all your child controls....
-
January 9th, 2009, 06:45 AM
For default system icons do not use MAKEINTRESOURCE or AfxGetInstanceHandle.
First parameter must be NULL and directly use IDI_QUESTION.
try this code:
LoadImage(NULL, IDI_QUESTION,...
-
January 4th, 2009, 02:42 PM
The previous post said compile a "release" build and not "debug" one.
And also these:
1- you must install the same version of directX or newest one on the target system.
2- Depend on your...
-
January 1st, 2009, 05:39 PM
vBulletin is a very nice community board, but why don't you add other options like tags for code,links and etc in advance mode when we are Posting?
anyone knows?
-
December 31st, 2008, 07:58 AM
I recommend using a modeless dialog:
- Topmost must be" true"
- Style must be "Pop up"
Note: You can hide titlebar or use regions and hide/mask other area of the window except shapes/texts
And...
-
December 31st, 2008, 07:40 AM
maybe you can use FindWindow with the class name of firefox window:
firefoxHandle = FindWindow(L"MozillaWindowClass", NULL);
-
December 30th, 2008, 05:09 AM
That's the point I wanted to mention first...
Second, There are thousands of functions that are obsolete and they must be replaced by new versions of that(especially faster or more advanced). they...
-
December 26th, 2008, 08:50 AM
If you are not going to use DEF file, then add extern "C" when you are exporting a function:
extern "C" DRVIFCFNC CString Concatinate()
{
return "";
}
-
December 26th, 2008, 08:27 AM
I use below method by using of my application's ClassName, call it in the beginning of WinMain:
HWND hwndS2 = GetRunningW (); // running an instance ?
if (hwndS2 != 0)
...
-
December 25th, 2008, 11:22 AM
before using bitmaps or icons, first you must load them and then add them to an image list if you want:
m_hDll = AfxLoadLibrary("myDll.dll");
hCursor = ::LoadCursor(m_hDll, ...
-
December 25th, 2008, 10:47 AM
In other words, apparently you are creating a rectangle but it draws an ellipse inside of that.
-
December 24th, 2008, 07:09 AM
try embedding manifest file into your executable file and then compile it for x64.
It should work for you.
from MSDN:
1- Link to ComCtl32.lib and call InitCommonControls.
2- Add a file...
-
December 23rd, 2008, 10:55 AM
use Depends.exe from "Microsoft Visual Studio 8\Common7\Tools\Bin" and check you dll to see if the name of your exported function is the same...
-
December 17th, 2008, 09:32 AM
first learn MFC or win32 API and then start...
when you are ready, this article is for you:
http://www.codeguru.com/cpp/g-m/directx/directshow/article.php/c4355/
Step 4 shows how to attack...
|
Click Here to Expand Forum to Full Width
|