|
thanks
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
You can also use GetWindowsDirectory or GetSystemDirectory .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
oops I'm late.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
GetSystemDirectory()
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I've posted 56258974253021 message on this board and have read 54879652345 pages through google, but I've not been able to find a CLEAR answer to the following question:
1) Can I create a dynamic splitter window in a function THAN CFrameWnd::OnCreateClient? If yes, how to fill the CCreateContext parameter of CSplitterWnd::Create
Thank you masters!
|
|
|
|
|
You're right. Real programmers must be writing programs and not hanging around CP forums.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
you've obviously never heard the adage 'its easier to catch flies with honey than vinegar' .. your obvious contempt/disrespect for the real programmers here, who are likely working for a living, will mean you get sfa real responses .....
too bad - guess you can ask at rentacoder or the like
'g'
|
|
|
|
|
"I can only show you the door. You're the one that has to walk through it."
-Morpheus.
cuz basically showing is easy .
The Door.[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
VuNic wrote: "I can only show you the door. You're the one that has to walk through it."
If I konw it I said to him you must to eat the red pill .
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 Real programmer
Did you see Different Views In Dynamic Splitter[^]?
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 )
|
|
|
|
|
You still have 56,204,094,600,676 more pages to read through.
"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
|
|
|
|
|
Why do i get this out put
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
From the following code.
str.Format(_T("My name is Fish786\n"));
FILE* f = fopen("c:\\test.txt", "a+");
length = wcslen(str);
fwrite(str, sizeof(wchar_t), length, f);
fclose(f);
Why the space in between characters and the second line on has a space in front.
Could someone please tell me whats wrong.
Please help.
Thanks a million
|
|
|
|
|
well, you're using wide chars (wchar_t) .. so maybe if you're using a compiler with Unicode build on by default ?VC2005+ that would explain it
'g'
|
|
|
|
|
ok.Having said that..if my str is declared as CString ..what would be the right syntax...
Thanks a million.
|
|
|
|
|
FISH786 wrote: Why do i get this out put
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
M y n a m e i s F i s h 7 8 6
Because you have that code in a loop or have ran it four times.
FISH786 wrote: Why the space in between characters and the second line on has a space in front.
Because of Unicode.
"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
|
|
|
|
|
Ok.Yes I did run it 4 times....How do I correct this issue?
|
|
|
|
|
Sorry Mean the Unicode Issue...
|
|
|
|
|
go to your project settings, under general, go to the character set option and change it from Unicode to Multi-Byte. That should undefine UNICODE
|
|
|
|
|
|
Hi!
I use this code to create the image list:
HIMAGELIST hImageList = ImageList_Create(16,16,ILC_MASK | ILC_COLOR32, 0, 1);
Then, in the code, I get hImageList and I want to get the flags (ILC_MASK | ILC_COLOR32)?
How must I do ?
Thanks you very much for your help
|
|
|
|
|
Here is the complete list of ImageList Functions[^]. ImageList_GetImageInfo will get you info about the image.
Yusuf
|
|
|
|
|
You cannot use ImageList_GetImageInfo to get the flags set during the creation of an imagelist.
I've already tried it, but no useful info can be retrieved in the structure IMAGEINFO
|
|
|
|
|
the command line of linker in project-property contains:kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
however it doesn't contain "boost_regex-vc80-mt-1_37.lib" which I used to use boost_regex-vc80-mt-1_37.dll and the latter one contains regex_search() function and so on. And I find I can use regex_search,smatch in My Application soomthly. All I do in my source code is including Two head files. I am wondering how does the complier locate "boost_regex-vc80-mt-1_37.lib"? I know there is only symbols(variable names,function names, etc)in .lib, even the complier gain the .lib, how the linker gain the corespondent .dll's name.
Can somebody tell me?
Thanks a lot.
modified on Friday, March 6, 2009 3:08 PM
|
|
|
|
|
JackPuppy wrote: smatch in My Application soomthly
I have no idea what that means
JackPuppy wrote: how the linker gain the corespondent .dll's name.
Perhaps they used this[^]?
|
|
|
|
|
In the linker option, you need to give the path of your boost lib.
Open your project properties dialog,
Config&properties->Linker->General Options->AddtitionalLibrarayDirectories[
Then in Input option,
Likner->Input->AdditionalDependencies[
Alternatively, In your code you can use
#pragma comment(lib,"Absolute_path_to_your_lib")
JackPuppy wrote: I know there is only symbols(variable names,function names, etc)in .lib, even the complier gain the .lib, how the linker gain the corespondent .dll's name.
Good question, but unfortunately the lib doesn't tell you about location details of your DLL. The lib just contains the exported symbols of the dll. It just talks about it. So when compiling you don't need the dll. Just a lib reference is enough. But at run time, you need to keep your dll along with your .exe or in system folders.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|