|
anyhow, thank you
Zo.Naderi-Iran
|
|
|
|
|
|
That's really strange... everywhere you write to me, you answer with an agressive speaking, and i get a low vote.
do you have any problem understanding what CP is for ?
if you roam here not to help anyone but to annoying people who try to help other, i really don't understand what you're here for
|
|
|
|
|
DavidCrow answered your question but looking at your code, you're not allocating memory in the
loop so what are you worried about?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
zoncpp25 wrote: do i allocate mamory (to call GlobalAlloc) in begin of loop then free it end of loop?
Yes, assuming you know how much you need before the loop starts. If not, you have no choice but to do it in the loop itself.
An alternative is to figure out a worst-case scenario (e.g., 2000 * sizeof(DWORD) ) and allocate for that. While it will likely be too much most of the time, that's a whole lot cheaper (from the Memory Manager) than a ton of smaller requests.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
if i allocate memory first of loop, for example with 256 bytes in size.
then i use 128 bytes of this size, in the loop.
when i free memory end of loop, is freed memory all of the 256 bytes? or the 128 bytes?
nonce, i test "allocate & free" in the loop itself.
then i inform you the result.
thank you
Zo.Naderi-Iran
|
|
|
|
|
zon_cpp wrote: when i free memory end of loop, is freed memory all of the 256 bytes?
Yes.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I have the following structure and piece of code:
typedef struct
#ifdef SAPonOS400
RFC_ERROR_INFO_EX
#endif
{
RFC_ERROR_GROUP group;
RFC_CHAR key[33];
RFC_CHAR message[513];
}
RFC_ERROR_INFO_EX;
RFC_ERROR_INFO_EX * error_info;
RfcLastErrorEx(error_info);
But then I receive this error:
Run-Time Check Failure #3 - The variable 'error_info' is being used without
being defined.
I know what it means but, don't know how to fix it, please help.
Many thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
what about this :
RFC_ERROR_INFO_EX* error_info <code>= NULL</code>;
|
|
|
|
|
Wont work ...
Error:
Unhandled exception at 0x77c47631 in RFC Testing App.exe: 0xC0000005: Access violation writing location 0x00000000.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
|
Programm3r wrote: RFC_ERROR_INFO_EX * error_info;RfcLastErrorEx(error_info);
Modify this to,
RFC_ERROR_INFO_EX error_info;
RfcLastErrorEx(&error_info);
|
|
|
|
|
|
Isn't this answered here[^] ?
|
|
|
|
|
Yes it would seem to be, but you and me, properly posted the thread at the same time, it took me a couple of seconds to realize my mistake. So when i posted my thread there was no response.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: So when i posted my thread there was no response.
It happens to me lot of times , while posting replies. So, usually, I do refresh forum page in separate browser window, before finally posting it. Its very likely, while you type your post, somebody post same/simlar answer.
|
|
|
|
|
|
custom url handler in MS Word kamPooh Just posted
Hi,
I register a custom url handler (abc://) in registery in HKEY_CLASSES_ROOT,
it can now work in IE if I type "abc://example" in IE URL,
it activate my stuff, but if I paste the url into MSWord,
it won't highlight as other url link. What else should I
perform in order to get my custom link highlighted in MSWord ?
Thanks
|
|
|
|
|
Hi all,
Any tutorials on Ownerdraw for List view control ...
Manjunath S
GESL
Bangalore
|
|
|
|
|
|
some samples are developed using .NET
I want help in win32 for Owner draw for Listview
Manjunath S
GESL
Bangalore
|
|
|
|
|
Manjunath S wrote: I want help in win32 for Owner draw for Listview
You mean not using MFC ?
|
|
|
|
|
In need in win32,
If any tutorials in mfc,may also help
Manjunath S
GESL
Bangalore
|
|
|
|
|
I'm not sure what you are expecting by mean of tutorial.
But, list control[^] section might be helpful to you by some mean.
|
|
|
|
|
i am not able to use ::CommandLineToArgvW in EVC while the samething worked in VC . I have included the necessary shellapi.h and shell32.lib ,but am still getting errors like ,
error C2039: 'CommandLineToArgvW' : is not a member of '`global namespace''
error C2065: 'CommandLineToArgvW' : undeclared identifier
error C2440: 'initializing' : cannot convert from 'int' to 'unsigned short ** '
|
|
|
|