|
You might need a third image for focused state (maybe even four, one for focused /selected and one for focused/unselected)
|
|
|
|
|
Hi,
Could u please send me sample code.
|
|
|
|
|
But of course! Check this[^] out!
|
|
|
|
|
I didn't find any help from this link. As radio button doesnot support OwnerDarw, its difficult ot custumize it. I already drived one class from CButton nad wrote some code on OnCreate function. Now I want to put some image on the radio button. Can u please help me in this regards..
Thanks...
|
|
|
|
|
Hi,
VC++ 2008
The following function will return false because the registry path contains space between 'Windows' and 'NT':
BOOL OpenKey()
{
HKEY hKey = NULL;
hReg = RegOpenKey (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\Whatever", hKey);
if (hReg != ERROR_SUCCESS)
return FALSE;
}
Google failed me, any work around? thanks
|
|
|
|
|
From MSDN:
This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the RegOpenKeyEx[^] function.
Are you programming 16 bit Windows?
|
|
|
|
|
WOW, I really need to visit an eye doctor, that did the trick, thank you very much
|
|
|
|
|
Being slightly cynical the function will return FALSE as the only line with return on it is return FALSE;
Cheers,
Ash
|
|
|
|
|
pubis wrote: HKEY hKey = NULL;
hReg = RegOpenKey (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\Whatever", hKey);
if (hReg != ERROR_SUCCESS)
return FALSE
why don't you utilize CRegKey class for handlling registry operation!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
If RegOpenkey() fails, the return value is a nonzero error code. So what value does hReg have?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I have a the following string "568" and 568(which is int), how memory is allocated for them internally... can any one please help me regrding this...
Thanks in Advance...
|
|
|
|
|
The language provides the sizeof operator [^], please use it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Pardhu2 wrote: I have a the following string "568" and 568(which is int), how memory is allocated for them internally... can any one please help me regrding this...
if it string,it would 1 byte per char!
if it int, it would be 4 byte per variable!
Shoot me down, if i am wrong!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok Shoot me down, if i am wrong!
say where and when.
ThatsAlok if it string,it would 1 byte per char!
1 or 2 bytes per character, also counting the terminating null.
|
|
|
|
|
C++ string literals (like to one of the OP) have 1 byte per character (wide character string literals must be L prefixed).
They include, as you stated, a terminating 0 .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In its simplest (ASCII) form the string "568" will allocate one byte per character and a null byte to signify the end of the string, giving a total of four bytes. If the string uses Unicode encoding then two bytes per character are allocated. If MBCS UTF-8[^] then it may be more than two per character.
An integer will be stored as 16, 32, or 64 bits depending on the type of variable: short, int, long, long long etc.
It's time for a new signature.
|
|
|
|
|
Hi,
How to create dynamic single and multiple arrays in C++.
|
|
|
|
|
I would suggest you to use a vector.
vector<int> v1;//single array of integers
vector< <vector<int> > v2;//2-dim array
<div class="modified">modified on Sunday, June 13, 2010 3:38 PM</div>
|
|
|
|
|
If you mean dynamically allocated memory then please read the new operator documentation [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
Is there any free/paid software/source code which provides a viewer for doc,pdf,xls,ppt etc files?
|
|
|
|
|
|
MKC002 wrote: Is there any free/paid software/source code which provides a viewer for doc,pdf,xls,ppt etc files?
for personel use or for commercial use?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
Hello everyone,
i have a problem,
i want to use FLTK in visual studio 2010. I installt it correctly, I copied the .lib files into the lib folder and the FL folder into the include folder in my Visual studio 2010 directory. My problem is when i compile the folowing code to see if everything works i get these errors:
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/FL_Window.h>
int main()
{
Fl_Window w(200, 200, "title");
Fl_Box b(0, 0, 200, 200, "Hie");
w.show();
return Fl::run();
}
1>------ Build started: Project: testGUI+, Configuration: Debug Win32 ------
1>Build started 13.06.2010 11:45:01.
1>InitializeBuildStatus:
1> Touching "Debug\testGUI+.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_Display_Device::device_type" (?device_type@Fl_Display_Device@@2PBDB)
1>fltkd.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_Display_Device::device_type" (?device_type@Fl_Display_Device@@2PBDB)
1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_GDI_Graphics_Driver::device_type" (?device_type@Fl_GDI_Graphics_Driver@@2PBDB)
1>fltkd.lib(Fl.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall Fl_Surface_Device::set_current(void)" (?set_current@Fl_Surface_Device@@UAEXXZ)
1>fltkd.lib(fl_draw_image.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)
1>fltkd.lib(Fl_Double_Window.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)
1>fltkd.lib(fl_rect.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)
1>fltkd.lib(fl_font.obj) : error LNK2019: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB) referenced in function "class Fl_Font_Descriptor * __cdecl find(int,int,int)" (?find@@YAPAVFl_Font_Descriptor@@HHH@Z)
1>fltkd.lib(Fl_Bitmap.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)
1>fltkd.lib(Fl_Pixmap.obj) : error LNK2001: unresolved external symbol "public: static char const * const Fl_System_Printer::device_type" (?device_type@Fl_System_Printer@@2PBDB)
1>C:\Users\Danii\documents\visual studio 2010\Projects\testGUI+\Debug\testGUI+.exe : fatal error LNK1120: 4 unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.18
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
im sorry if this has been explained before.. i couldnt find anything..
Red&Black
|
|
|
|