|
After you do your addstring, call UpdateWindow:
clistbox.addstring(xxxxx);
clistbox.UpdateWindow();
Good luck.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Hai!
I have byte array of an image (Image can be .bmp or .jpg or .jp2) Now how can i know the width and height of the image present in byte array?
Thanks!
|
|
|
|
|
kapardhi wrote: the width and height of the image present in byte array?
From a CBitmap object ? Its written here[^]
|
|
|
|
|
BYTE *pImage = new BYTE[4000];
there is no width and height of a byte array.
if the byte array holds image pixels, then whoever gives you the byte array will also have to tell you the image dimensions.
if the byte array holds an encoded image file, then you will have to decode/parse the format.
|
|
|
|
|
Hi friends,
In my project i created Menu on design time itself.I tried to insert the image in sub menu.I cant get result.Please any body give me ur idea to insert the image in menus.
Language ->Main menu
Sub menu:
English
Italy
French
In english menu i nedd to insert the England flag.Please Help me
Thanks and regards
Anitha
|
|
|
|
|
This will help you
http://www.codeproject.com/KB/menus/newmenuxpstyle.aspx
|
|
|
|
|
CMenuEX - A bitmap menu class[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi friends
Can someody tell me how to find pThreadVC.dll and pThreadVC.lib for x64 sytem. I mean I need 64 bit binaries to raun on 64 bit system.
I have the source files and I have also managed to get the 64 Binaries from them, But they are not working
If I use nmake to create 64 bit what option should I give as command line parameter so that it will create 64bit output
Thanks
|
|
|
|
|
Ranojay wrote: If I use nmake to create 64 bit what option should I give as command line parameter so that it will create 64bit output
You need to use the correct Visual C++ binaries. Usually you can do that by changing working directory to your VC directory (e.g. c:\Program Files\Microsoft Visual Studio 9.0\VC for VS2008) and using one of these commands:
- If you're running 64-bit Windows
vcvarsall x64 - If you're running 32-bit Windows
vcvarsall x86_amd64
This will put the Visual C++ binaries to create 64-bit code at the head of your path. Entering the command 'cl' should now say something like this - note the for x64 :
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks ...can u tell me the steps for this...
i will call this from the x64 commandline of MSVC 2005 ?
any changes to be done in the make file ?
thanks again
|
|
|
|
|
Ranojay wrote: any changes to be done in the make file ?
No idea - it depends on the makefile. Try it and see - you can't break anything...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I want a simple application which will only launch another application. But I dont want to show the cosole or any UI for the 1st application. can any one help me how to do so.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
Why do you need such a thing? Why can't the 'another application' be launched directly instead? There are valid reasons, but I want to know what's your case.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I am lunching the 2nd application with some specific command line options, that is why i need this 1st appliaction.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
I'm just curious before I can give you an answer, why can you not just launch the second application with command lines already? Why the extra 'launcher' application?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
The end user has the requiremet like that. he want to launch the application with a icon click on desktop.....
birajendu
CyberG India
Delhi
India
|
|
|
|
|
why not create a shortcut for your customer?
|
|
|
|
|
You could do something like this:
#include <windows.h>
#include <tchar.h>
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPTSTR lpCmdLine, int nCmdShow)
{
<a href="http://msdn.microsoft.com/en-us/library/ms682512(VS.85).aspx">CreateProcess</a>[<a href="http://msdn.microsoft.com/en-us/library/ms682512(VS.85).aspx" target="_blank" title="New Window">^</a>]
return false;
} You might as well use ShellExecute or ShellExecuteEx , like Michael Schubert suggested.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
So why not just change the shortcut to include the necessary arguments?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Create a "Win32 Application" project. it won,t be having any GUI or console by default.
|
|
|
|
|
Something like this maybe:
#include <windows.h>
#include <shellapi.h>
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
SHELLEXECUTEINFO ShExecInfo;
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = NULL;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "program.exe";
ShExecInfo.lpParameters = "-switch1 -switch2";
ShExecInfo.lpDirectory = "c:\\yourpath";
ShExecInfo.nShow = SW_HIDE;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
return 0;
}
|
|
|
|
|
Thanks,
I tried this and also CreateProcess(), but my problem is i dont want the console window of the parent application. I am creating a win 32 project in visual studio 2005.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
The code I supplied (same for Rajesh's suggestion) doesn't create any window, neither console nor GUI.
|
|
|
|
|
I don't see how can you see a window when the code creates none... You have probably created a Win32 console application. You need to create a Win32 application instead.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
I want to get the "Enter" Key down notification from a ClistCtrl. I have handled the LVN_KEYDOWN but the parent window is not notified when "Enter" Key is pressed and the Parent window is notifies when all other keys are down. How can i get notified when "Enter" key is pressed.
I tried using NM_ENTER but nothing happened.
thanks
Nitheesh
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|