|
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
|
|
|
|
|
thanks pal!
however I didn't "Likner->Input->AdditionalDependencies[// Here specify your boos lib] //Also you can give absolute paths here", neither "#pragma comment(lib,"Absolute_path_to_your_lib".
But I can use regex_search(), and why? it's confusing?(I did include the lib's directory in project property dialog).
Further the lib seems to contain at least the name of the dll, however see this lib codes I have dumpbin from a lib:
Microsoft (R) COFF/PE Dumper Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file E:Visual Studio 2005\Projects\DLLexperiment\debug\dllshiyan.lib
File Type: LIBRARY
Archive member name at 8: /
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
7A size
correct header end
5 public symbols
17E __IMPORT_DESCRIPTOR_dllshiyan
3B0 __NULL_IMPORT_DESCRIPTOR
4EA dllshiyan_NULL_THUNK_DATA
642 __imp__add
642 _add
Archive member name at BE: /
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
84 size
correct header end
4 offsets
1 17E
2 3B0
3 4EA
4 642
5 public symbols
1 __IMPORT_DESCRIPTOR_dllshiyan
2 __NULL_IMPORT_DESCRIPTOR
4 __imp__add
4 _add
3 dllshiyan_NULL_THUNK_DATA
Archive member name at 17E: dllshiyan.dll/
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
1F6 size
correct header end
FILE HEADER VALUES
14C machine (x86)
3 number of sections
49B21595 time date stamp Sat Mar 07 14:35:01 2009
110 file pointer to symbol table
8 number of symbols
0 size of optional header
100 characteristics
32 bit word machine
SECTION HEADER #1
.debug$S name
0 physical address
0 virtual address
44 size of raw data
8C file pointer to raw data (0000008C to 000000CF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
Discardable
1 byte align
Read Only
SECTION HEADER #2
.idata$2 name
0 physical address
0 virtual address
14 size of raw data
D0 file pointer to raw data (000000D0 to 000000E3)
E4 file pointer to relocation table
0 file pointer to line numbers
3 number of relocations
0 number of line numbers
C0300040 flags
Initialized Data
4 byte align
Read Write
RELOCATIONS #2
Symbol Symbol
Offset Type Applied To Index Name
-------- ---------------- ----------------- -------- ------
0000000C DIR32NB 00000000 3 .idata$6
00000000 DIR32NB 00000000 4 .idata$4
00000010 DIR32NB 00000000 5 .idata$5
SECTION HEADER #3
.idata$6 name
0 physical address
0 virtual address
E size of raw data
102 file pointer to raw data (00000102 to 0000010F)
E4 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0200040 flags
Initialized Data
2 byte align
Read Write
COFF SYMBOL TABLE
000 007BC627 ABS notype Static | @comp.id
001 00000000 SECT2 notype External | __IMPORT_DESCRIPTOR_dllshiyan
002 C0000040 SECT2 notype Section | .idata$2
003 00000000 SECT3 notype Static | .idata$6
004 C0000040 UNDEF notype Section | .idata$4
005 C0000040 UNDEF notype Section | .idata$5
006 00000000 UNDEF notype External | __NULL_IMPORT_DESCRIPTOR
007 00000000 UNDEF notype External | dllshiyan_NULL_THUNK_DATA
String Table Size = 0x56 bytes
Archive member name at 3B0: dllshiyan.dll/
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
FD size
correct header end
FILE HEADER VALUES
14C machine (x86)
2 number of sections
49B21595 time date stamp Sat Mar 07 14:35:01 2009
BC file pointer to symbol table
2 number of symbols
0 size of optional header
100 characteristics
32 bit word machine
SECTION HEADER #1
.debug$S name
0 physical address
0 virtual address
44 size of raw data
64 file pointer to raw data (00000064 to 000000A7)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
Discardable
1 byte align
Read Only
SECTION HEADER #2
.idata$3 name
0 physical address
0 virtual address
14 size of raw data
A8 file pointer to raw data (000000A8 to 000000BB)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0300040 flags
Initialized Data
4 byte align
Read Write
COFF SYMBOL TABLE
000 007BC627 ABS notype Static | @comp.id
001 00000000 SECT2 notype External | __NULL_IMPORT_DESCRIPTOR
String Table Size = 0x1D bytes
Archive member name at 4EA: dllshiyan.dll/
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
11B size
correct header end
FILE HEADER VALUES
14C machine (x86)
3 number of sections
49B21595 time date stamp Sat Mar 07 14:35:01 2009
D8 file pointer to symbol table
2 number of symbols
0 size of optional header
100 characteristics
32 bit word machine
SECTION HEADER #1
.debug$S name
0 physical address
0 virtual address
44 size of raw data
8C file pointer to raw data (0000008C to 000000CF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
Discardable
1 byte align
Read Only
SECTION HEADER #2
.idata$5 name
0 physical address
0 virtual address
4 size of raw data
D0 file pointer to raw data (000000D0 to 000000D3)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0300040 flags
Initialized Data
4 byte align
Read Write
SECTION HEADER #3
.idata$4 name
0 physical address
0 virtual address
4 size of raw data
D4 file pointer to raw data (000000D4 to 000000D7)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0300040 flags
Initialized Data
4 byte align
Read Write
COFF SYMBOL TABLE
000 007BC627 ABS notype Static | @comp.id
001 00000000 SECT2 notype External | dllshiyan_NULL_THUNK_DATA
String Table Size = 0x1F bytes
Archive member name at 642: dllshiyan.dll/
49B21595 time/date Sat Mar 07 14:35:01 2009
uid
gid
0 mode
27 size
correct header end
Version : 0
Machine : 14C (x86)
TimeDateStamp: 49B21595 Sat Mar 07 14:35:01 2009
SizeOfData : 00000013
DLL name : dllshiyan.dll
Symbol name : _add
Type : code
Name type : no prefix
Hint : 0
Name : add
Exports
ordinal name
_add
Dump of file
DUMPBIN : fatal error LNK1181: 无法打开输入文件""
|
|
|
|
|
there isn't(or I couldn't find it out)plus,this is really very confused reading, can you give me some acrtiles on what each sentence in this lib mean? thanks!
|
|
|
|
|
This[^] may help you. But I don't understand, why do you need to check them. You may want to DUMPBIN the contents of the DLL rather?
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
|
|
|
|
|
Hi All,
I have implemented a simple application, the WndProc method handle all messages, but when I debug the application I could see only numbers,
How can i know which message is associted with that perticular number?
more precisely I want know which number(message) WndProc handles when I minimize the application?
|
|
|
|
|
WM_SIZE & SIZE_MINIMIZED.
winuser.h
If you want to know all the definitions, just right click on any of the windows Constant. like WM_SIZE, then go to definition. You'll land up in the junkyard of windows definitions WinUser.h. But it'll be in Hex as you can see.So don't search for the exact number that you get in your WndProc.
Sorry I'm editing the text for the zillionth time.- You should check for SIZE_MINIMIZED in wParam of the message.
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
modified on Friday, March 6, 2009 12:59 PM
|
|
|
|