|
DLL_PROCESS_ATTACH will help you
this will get when a Dll is attached to any procesess..
(it can be consider as a new reference)
Code the Dreams.
|
|
|
|
|
hi,
this is my trouble, tell me how to fix it.
------------------Configuration: HydroServer - Win32 Debug--------------------
Linking...
nafxcwd.lib(oledisp1.obj) : fatal error LNK1190: invalid fixup found, type 0x7562
Error executing link.exe.
HydroServer.dll - 1 error(s), 0 warning(s)
thanks in advance
Extreme programming. Do the No.1
|
|
|
|
|
it seems one of your object files is corrupt. Try a Rebuild or delete the *.obj files manually.
|
|
|
|
|
Hi, I am going to develope a software about making .ISO CD-ROM's Maping files. This software likes vitual CD. But, you see, I have no information about CD-ROM's data struction which named ISO9660. So, How can I get one copy about it?
By the way, I'm a beginning about developing software. Could you please give some information about how to study develop?
I want to become programmer!!!
|
|
|
|
|
Alpha Intelligence wrote:
This software likes vitual CD.
You'll have a hard time Googling on ISO9660, try searching for ECMA-119, it's what you are looking for. And probably, you'll need to read about RockRidge and Joliet extensions.
You can get the sources of virtual CD, it may be a good starting point. Another place to look for code that does this is the iso9660 filesystem for Linux. You should be able to get its sources on the web, too.
My latest article:
SQL Server DO's and DONT's[^]
|
|
|
|
|
Thank you, Daniel Turini. OK, I have a plan to make software which is like to Vitual CD to use in Linux PLatform. Thank you for giving me this information.
And how can I get ECMA-119? Visiting www.ecma.org? I Try It!
OK, THANK YOU A LOT!
(P.S. I'm a Chinese. So I can speak English smartly. I think I should Work hard now.);P
I want to become programmer!!!
|
|
|
|
|
Alpha Intelligence wrote:
OK, I have a plan to make software which is like to Vitual CD to use in Linux PLatform.
Have you tried this on Linux?
mount -t iso9660 -o loop /tmp/imagename.iso /mnt/myfakecd
My latest article:
SQL Server DO's and DONT's[^]
|
|
|
|
|
Oh, sorry, I have not done it yet. Because I am a beginer. So I'm going to learn about the kernel core of the Linux and the driver programming on Linux's platform. Linux is hopeful in future I think. So, It is important for me that learning programming on Linux's platform at once. You see, I have much thing to do now. To tell the truth, I'm a college student in China and I have much time to study Linux.
Not only I want to study the kernel core of the Linux, but also I have a plan about developing share software and free software which preformaces on Windows PC. If you, my good friend, have some exprience about developing software, could teach me something about it? Thanks A Lot!;)
(P.S. I think if it's necessary, We can mail each other to keep in touch with each other. And please mail at alpha_8848_prince@hotmail.com/. )
I want to become programmer!!!
|
|
|
|
|
can anyone give me a code snippet of using
the TransmitFile winsock api
on the client end and the server end.
i want to just pass two files across the network using these API's
urgent please
|
|
|
|
|
Just take a look at the Internet/Winsock samples here at cp.com, there's a lot stuff
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hey is it cp.com ????
i checked it out.
it's something related to color photos.
another way out please.....
|
|
|
|
|
This site is CP
SideNote: TransmitFile is optimized for speed in XP and space on Windows2K Server
Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
|
|
|
|
|
hi,
i'd like to find out how we can make use of 1 cpu in a dual-cpu system to do some work with 1 thread and then the other cpu to do something else with another thread.
my problem is, very often we create 2 threads but have no control which cpu handles them. i'd like to know how to control which cpu handles which thread.
appreciate any advice...
thanks very much.
|
|
|
|
|
Check SetProcessAffinityMask and SetThreadAffinityMask , but a BIG but , IMHO only users with advanced MT knowledge should do this, and even so, 99% of time isn't needed to do this, The OS Scheduling Polily should decide for you, since have better knowledge what to do. Also most MT experts are against this type of Processor thread-bounding and normally they don't bring any kind of advantage to your application. Post your question on comp.programming.threads[^] and be prepared for the worst
And btw , why on earth do you want to do this ???
Documentation on mdsn site about the 2 apis listed above
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/multiple_processors.asp[^]
Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech
|
|
|
|
|
Okay, this doesn't have to do with resizing (shrinking/expanding) array using CArray or anything. This is in good old C. Anybody know how I can possibly do this? I need to read strings from a file into an array, but I need to be able to resize it if it goes over 'x' elements or if I don't fill up 'x' elements, I can free the remaining unused elements. For example,
<br />
int array_size = 100;<br />
char mystupidarray[array_size];<br />
<br />
<br />
<br />
...<br />
if( element_counter > array_size)<br />
{<br />
<br />
<br />
}<br />
else if( element_counter < array_size )<br />
{<br />
<br />
<br />
}<br />
...<br />
<br />
So do you catch my drift?? Sorry, I kind of think better sometimes if I can show a basic idea of what I'm trying to get at in code. I've searched some books, but haven't found what I'm looking for. So I, being part of CP.com, though I could post it here. Any hints, suggestions, flames (erk!) will be greatly appreciated.
Kevin P., stabbing the harlet to pay for her sins, leaving the virgin.
|
|
|
|
|
The only idea I have is to use realloc() , which probably does malloc() the memory needed, and then copies from the old buffer (on which is then called free() )
For more information, just enter malloc into the MS knowledge base.
"My opinions may have changed, but not the fact that I am right."
Found in the sig of Herbert Kaminski
|
|
|
|
|
Firstly, mystupidarray would have to be a pointer, not an array allocated on the stack:
int array_size = 100;
char* mystupidarray = malloc(array_size) ; // I forget the malloc signature, but 100 bytes allocated
...
// you have to allocate a new array and copy the old one across into it
if (element_count > array_size)
{
new_size = array_size + 100 ;
pNew = malloc(new_size);
memcpy(pNew, mystupidarray, array_size);
free(mystupidarray);
mystupidarray = pNew;
array_size = new_size;
}
its the same for making it smaller, but make sure the copy the actual number of bytes in the new array, not the size of the original.
Roger Allen
Sonork 100.10016
In case you're worried about what's going to become of the younger generation, it's going to grow up and start worrying about the younger generation. - Roger Allen, but not me!
|
|
|
|
|
Kevin Power wrote:
I need to read strings from a file into an array, but I need to be able to resize it if it goes over 'x' elements or if I don't fill up 'x' elements, I can free the remaining unused elements.
My advice is using a std::vector and do not hazzle with handcoded stuff here. STL is highly effective and will fullfill your digital needs here. std::vector will automatic realocate if needed, and with the swap trick (see 'Effective STL' from Scott Meyers) you can free unneeded capacity.
Hope it helps.
|
|
|
|
|
*** Note: this is in response to the last three posts
This is going into an windrop (eggdrop on windows), which is strictly C. If I could, I would use C++ to get around the extra work. Thank you all, though. I do appreciate you input. I didn't think of allocating the file size instead of 100 or so chars. I will be putting this to work immediately.
Kevin P.
|
|
|
|
|
Its very stoopid to resize for 100 char.
If your reading from a file it would be best practice to get the filesize anf than allocate the memory.
Do your homeworks.
Try this @ home. (B&B)
|
|
|
|
|
Or just use CStringArray()
|
|
|
|
|
I have a function called mycreatewindow function in dll
if i call this function from my exe i want to create one window and display the window.Is it possible to do in win32 dll.if it is how to do it.
Pl reply.
|
|
|
|
|
I need to get the GetDockedControlBar option of CDockBar, but it says that is a protected member, how can i access to this?
|
|
|
|
|
You need CDockBar to be a friend class of yours, or your class needs to be derived from CDockBar. Obviously only the second of those options is possible for you.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I've derived a class from CDockBar, it's called CDockBarEx but i still having the same problem, why is this?
|
|
|
|