|
I don`t know, that is what Microsoft says that should be defined in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/allowsetforegroundwindow.asp
I tried just using the assignament but still doen`t work :S
|
|
|
|
|
Kharfax wrote:
I don`t know, that is what Microsoft says that should be defined in
There's nothing on the link that you provided that indictaes the required values of WINVER or _WIN32_WINNT . The only requirement I found was in winuser.h which indicates that _WIN32_WINNT must have a value >= 0x0500. To see what value it does have, you'll need to put in a few lines of code. The easiest way would be to add the following at the earliest possible moment (e.g., right inside of main() or WinMain() ):
char s[8];
sprintf(s, "%#x", _WIN32_WINNT); Then set a breakpoint on that statement and check the value of s .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Did you try using a debugger tool?
|
|
|
|
|
Just because no one responded to your post does not mean that no one (here) knows the answer. Perhaps the right person did not read your post.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
yes, Bob! i surely tried to debug the code by using the VC++ built-in debugger.
and DC! how can i make my msgs accessible for ones who know and want to answer?
thanks for your attention
|
|
|
|
|
ilostmyid2 wrote:
and DC! how can i make my msgs accessible for ones who know and want to answer?
That's the $64,000 question! Even if you posted your question at a time when the VC++ forum is most busy, there is no guarantee that your post will be read. It's a crap shoot at best. Good luck!
From my experience, the post's subject must be meaningful and terse. The post's body must be short, relevant, and to the point. Folks don't like spending their free time wading through meaningless code snippets, comments, etc. only to find the poster wanted something entirely different. I also don't like threads to drag on past a half dozen posts or so. By that time the original intent has been lost and you end up on several other tangents instead.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi , I am new to VC++, I have a edit control on a dialog box and in one of the functions I am assigning some text to a variable m_edit = "Test". m_edit is the member variable asigned to the edit box using the class wizard. Run time whenI see the dialog box even after the assignment the dit controls text is not changing. what should I do to make the value assigned visible on the edit box
|
|
|
|
|
If m_edit is a control (not data) member (i.e. m_edit is of type CEdit ), do the following:
m_edit.SetWindowText ("Test");
to set the edit control's text.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
m_edit is of type CString and is a data memebr variable...
|
|
|
|
|
You need to call UpdateData() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Use: DDX_Text(pDX, IDC_EDIT1, m_edit);
and after assigning the values use:
m_edit = "Test";
UpdateData( false );
http://www.priyank.in/
|
|
|
|
|
Is there an easy way in C++ to tell if a number divides evenly?
|
|
|
|
|
Smells like homework. See the "%" operator.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thank you for reminding me about the modulus operator. I forgot about it.
|
|
|
|
|
I was wondering if anyone knew how to owner draw and/or change color of images within an CImageList. I have tried lots of things none of which seem to work. I have a list of colors that relate to an index number. I would like to draw a bitmap/icon next to my corresponding data in a list view of the correct color.
I have tried creating a bitmap, drawing in a memory DC and then calling CImageList::Add() with my bitmap -- not working. I have tried, getting a bitmap from CImageList::GetImageInfo() and drawing in it -- not working... maybe I'm not doing something right? Anyone had any luck with this and possibly have some sample code?
Thanks
|
|
|
|
|
I've researched this topic on my compiler, microsoft visual studio, and I've done everything that the tutorial said to do, but I can't get it to work. i want to have colors cycling through each of the letters in a certain sentence, lets say..."hello." I'd want two or three colors to cycle left to right at a certain interval in which I set. the tutorial said I have to set some sort of table or something. thanks.
dudeoffrance
|
|
|
|
|
Is this even close to what you are after?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
close enough. That would be good too. But i was looking for being able to change each letter's color, but that would be nice too.
dudeoffrance
|
|
|
|
|
dudeoffrance wrote:
But i was looking for being able to change each letter's color...
Isn't that what the snippet I showed achieved?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
when i try to open it it wont show me whatever you have in mind, but if you know how to change each colors letter, please tell me how. It would be greatly appreciated.
dudeoffrance
|
|
|
|
|
Im try to make a simple application with window, when i
do this , the first time, it works very well, but when i save the c++ file, the compiler save like a space work or like a projec. when i try to use the program in another day,don´t work !!! : and have the next message:
(the programm have #include stdafx.h, don´t have precompiler headers activated, and don´t have erros (is very short the code !!! (the firs time, always work))
and have the next message:
DEBUG WIN32
COMPILING
stdafx.cpp
C:\Program files .....\include\winnt.h(1092) error C2146: Syntax error: missing ';' before identifier 'KSPIN_LOCK'
C:\Program files .....\include\winnt.h(1092) fatal error C1004: unexpected end of file found
im working with WinMe
so... help me !!!
|
|
|
|
|
Assuming you have not touched the stdafx.cpp file, what does the stdafx.h file look like?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi all,
I have created a character buffer (char buff[]) which contains the data of a word document (the document contains text and images).
i would like to pass this data onto a printer. I have managed to get the handle of the printer using GetPrinterDC. but what i can't figure out is how am i going to pass my buffer data to this DC?
If given the handle of a window, we can find its DC and then pass that data to the printer DC using BitBlt, but in my case i don't have a handle, but only an array of characters which represent some image.
Can somone suggest a method?
|
|
|
|
|
I have Resource Id in string format.
ex ("IDC_EDIT").
How can i convert it into ID format to get the handle of the Edit box
using GetDlgItem.
if anybody come across the problem .pls let me know the solution.
Advance thanks,
Chezhian
|
|
|
|