|
I know, but the second question was about modems. Sockets don't care what's sent through them, as you pointed out nicely.
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
1. Sometimes "\r\n" is required by protocol design. Sometimes, a developer uses it for well-formatting of the source code.
2. Never mind about special characters. If the special character appears, it will be replaced automatically by escape-sequence.
Sincerely Yours,
RadioShark
|
|
|
|
|
Hi, im veyr new to mfc, can anyone show me how to detect enter key is pressed in a cedit control?
thanks a bunch
|
|
|
|
|
|
hi , i'm beginner in vc++ and i start an mdi application:
my simple question is:
how can i add bitmaps to the toolbar (one file bmp that contains the tool bar images)
example ;
i have 5 bmp's and iwant to make them in one file toolbar.bmp fot the tool bar.
Please , hwo can i do this,
thanks
|
|
|
|
|
Hi,
You may use a built-in Visual C++ image editor for creating own toolbar. But in this case, you are allowed to create only 16-color image toolbar.
Sincerely Yours,
RadioShark
|
|
|
|
|
what about 24-color image?
|
|
|
|
|
Ive made a program with MFC and when i try to run it on another computer its asking for loads of dll files , is there some thing i gotta install to get this to work?
|
|
|
|
|
if you want to disturbute ur exe file, then you need to build it under release mode. If your application is using some ActiveX components, then you need to copy them and register it too.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
In "Project setting" - General select "Use MFC in Static Library".
|
|
|
|
|
its a good idea but it will increase the binary to a huge one, like in MBs you dont want ur customers to download ur file from the net that does a small task but takes ages to download.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
I dunno why two morons voted this a 1, I thought it was damn good advice.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Voting down is onething, but voting down without a reason is really stupid.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
The customer will need to download the DLLs anyway. I doubt 98 comes with the VS.NET C RTLs made in 2002.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
|
It's amazing how handy your little FAQ is to us beginners, Mike...
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
For MFC you need MFC42.dll, if you've used C as well as C++, you probably need MSVCRT as well.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi everyone
I have little problem with determining correct AddressOfEntryPoint in PE headers. When this param is incorrect, then I try execute exe file, Windows says, that isn't Win32 application.
How to programmatically check, which value should be contain AddressOfEntryPoint ? Is it possible to determine correct value based on other parts PE headers e.g. IMAGE_DATA_DIRECTORY ?
snippet of source code will be blessing
Mila
|
|
|
|
|
AddressOfEntryPoint is a realative value, that means it points to a address in the file.
Have a look at some PE tutorials, they will show you how to calculate the right value.
Don't try it, just do it!
|
|
|
|
|
hi ...
I would like to build a simple program to submit form data for a specific webpage.
but i get an error "the operation timed out" i make my search but i did not find any thing usefull.......
so any help........
|
|
|
|
|
Are you using http 1.1 protocol??? If so why dont you refer RFC2068 on http 1/1 protocol.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
|
i guess you can send data either using post or get method.
I guess get method is pretty straight forward. for post method you (and me) need more info how to do it (reference the rfc doc)
it would go like this.
Make the socket connection with the webserver.
Then depending upon POST or GET you send send the data.
I hope i am getting ur question correctly.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hello, everyone!
I am looking for a safe and efficient way to use two dimensional arrays, better a library that I can use in C/C++.
Here is the way that I used before, allocate a pointer array, and then allocate memory pointed by each pointer in the array (size of each memory block pointed by each pointer may be vary and I always use an additional one dimensional array to record each of their size). But I find it is hard to manage (for example, release/free memory), because all the space the two dimensional array using is allocated on the heap and not on the stack, and
it is easy to result in memory leak if the management mechanism is not sound. And I want to supply an unified interface to client applications using the library, who uses the memory block as a two dimentional array, for example, A[i][j], and not using it as pointers, for example, *(A + i + j). Maybe to implement that function, I need a wrapper or a middle layer.
What I am looking for is a safe and efficient way to define, allocate space, manipulate and free (free part or all of the two dimensional array). Can anyone help? Are there some source codes or tutorials that I can make a reference?
Thanks in advance,
George
|
|
|
|
|
One of the safest ways would be to use standard library components.
std::vector<std::vector< your_type > > storage;
From a performance perspective this will be fine, unless you need to make lots of copies. Situations that involve many copies tend to come up in matrix maths. If that's the case it's worth looking for a library which uses templated operators to remove the overhead of the temporaries involved in such expressions. If that's the case look at boost::blas or blitz ( ? I think)
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|