|
|
hi,
can multiple threads access and send messages to the same dialog resources ( text boxes, lists,..)at the same time ? i.e one increments a progress bar, the other responds to menu commands etc.
thx
|
|
|
|
|
saadani wrote: can multiple threads access and send messages to the same dialog resources ( text boxes, lists,..)at the same time ?
Sort of. It's better to post those messages to the control's parent instead.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Not exactly. The thread that creates a window is the only thread that can pump messages for that window. So multiple threads can all send/post messages to a window, but only one thread can process them.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I have the following data in anexcel file.
A B C D
1.1 2.2 6.9 3.2
6 8.0 79 92.4
7.4 4.9 7.1
0.123 4 0.00457 64
64 0.04
3.2 88 7.2564 1.92
35.2 0.123 0.5768 95
1 2 3
5 6 7 8
9 10 12
Now my question is i need to sync the file.
i have read the first row, i.e 1.1,2.2,6.9,3.2 and stored it in a CArray.so, the size of my CArray would be 4.
It has all the elements in the row. It is ok.
Similarly i read the second row.Fine.
When i read the third row the second element is missing(Empty). If any one the elements is missing i need to ignore the row and get the next row.
How can i do this?
|
|
|
|
|
cuteee wrote: If any one the elements is missing i need to ignore the row and get the next row.
How can i do this?
Just count the number of delimeters. Each of your rows should have three. Any less, discard and move on.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks it worked.
I have one more question
I have the following header list
A B C D Fan Light Bulb Balloon H I J
I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
|
|
|
|
|
cuteee wrote: I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
For each item in the CArray object, if its length is greater than one, add it to a separate CArray object.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Let me rephrase the question.
I have the following header list
Apple Boy C Dent Fan Light Bulb Balloon Go Ink J
I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
|
|
|
|
|
For each item in the CArray object, if its one of {Fan, Light, Bulb, Balloon}, add it to a separate CArray object. Any better?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hello all people,
I need make a application that update the BIOS information:
Vendor name, BIOS Version, BIOS build date and more.
I used to know that I have to use the 52h function. I don´t know how complex is this task.
somebody have a code to make this. may be in any language ( mainly in C/C++).
thanks all!
|
|
|
|
|
How to create an error log?
|
|
|
|
|
One way:
fopen("error.log", "w"); Other ways exist, too.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks for the I just couldn't help it.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
I am trying to port a C++ code project to C#. I am stuck on this code snippet. Can you please tell me what the DWORD RESERVED[2] means in the following struct? I have never seen anything like it before. It looks like a mixture of number and array.
struct TRAYDATA
{
HWND hwnd;
UINT uID;
UINT uCallbackMessage;
DWORD Reserved[2];
HICON hIcon;
};
|
|
|
|
|
Two DWORD s, nothing more than that or a 8-byte buffer just taking up space.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
James, thanks for pulling me through. All this C++ nuances can drive you nUtZ!
|
|
|
|
|
Hi,
I have unisnstalled Express edition 2005,
But back to VC++6.0 I can compile but Iat the execution, always the two errors:
Linking...
MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/Listing3-3.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Listing3-3.exe - 2 error(s), 0 warning(s)
Despite the fact that I look at the help on line, I cannot manage to use crrectly VC++6 again,
thanks,
Regards
|
|
|
|
|
have you tried to rebuild all your workspace ?
did you also look in the project if there was really a main() function ??
|
|
|
|
|
|
I am new to DLL. I developed a DLL followed the basic dll instruction such as declare __declspec(dllexport) in dll generation, and declare __declspec(dllimport) in dll client, but I still got error as: error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl voidtry(int)" (__imp_?voidtry@@YAXH@Z) referenced in function _main. Thanks for any suggestions.
|
|
|
|
|
do you link statically to the lib file, or dynamically to the dll ??
seems that you have a name mangling problem.
|
|
|
|
|
Thanks for your reply. I am new to DLL, and I am not sure what is statically or dynamically. How I use is "#pragma comment(lib, "audiolib.lib")". Thanks again.
|
|
|
|
|
are you refering to any .lib file??, if so try adding it in the LINK option. and use dumpbin utility to check if the function is actually getting exposed in the dll.
VuNic
|
|
|
|
|
Thanks for your suggestion. I did refer some lib I built with DLL, and I also included the lib in the project using "#pragma comment(lib, "aacresample.lib")". I tried the dumpbin, but I did not know if the dll and lib I built are correct. I saw those definations of export functions, but I did not know if they were right. Below is the result from dumpbin dll.
///////////////////
Dump of file aacresample.dll
File Type: DLL
Section contains the following exports for aacresample.dll
0 characteristics
44146867 time date stamp Sun Mar 12 13:28:55 2006
0.00 version
1 ordinal base
4 number of functions
4 number of names
ordinal hint RVA name
1 0 0001104B _CopyResamplerState@4
2 1 00011271 _CreateSplineResampler@12
3 2 000111E5 _SplineResample@20
4 3 000111C7 _voidtry@4
Summary
D000 .data
1000 .idata
2000 .rdata
1000 .reloc
1000 .rsrc
8000 .text
10000 .textbss
///////////////////////////
Thank you.
|
|
|
|