|
Why you couldnt? where's problem?
|
|
|
|
|
we are giving support to japanese language for our product. Iam able to dispaly the Japanese string in the MessageBox.But I dont know how to show(override) OK and Cancel buttons in Japanese.
your Advice, will be very helpful to me.
|
|
|
|
|
If your product is UNICODE enabled you won't need to take care of this. The Japanese OS will display the text on the buttons properly.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank u so much Boss.
This is Unicode supported product. But till now we are testing in English OS. So we are able to show all menus Dialogbox strings in Japanese.But Only this Yes NO Cancel in MessageBox are displaying in English.
So now i will test this Application in Japanese OS installed system.
Once again Thanks for sharing ur Knowledge.
Royal.
|
|
|
|
|
Hi,
I want the Connect As dialog to pop up on click of a button. I tried using the WNetDisconnectDialog() in VC98 but get the following linker error error LNK2001: unresolved external symbol _WNetDisconnectDialog@8
Included the following in stdafx.h
#undef _WINNETWK_
#include <winnetwk.h;
but then I get the following errors.
error C2011: '_NETRESOURCEA' : 'struct' type redefinition
error C2011: '_NETRESOURCEW' : 'struct' type redefinition
error C2011: '_CONNECTDLGSTRUCTA' : 'struct' type redefinition
error C2011: '_CONNECTDLGSTRUCTW' : 'struct' type redefinition
error C2011: '_DISCDLGSTRUCTA' : 'struct' type redefinition
error C2011: '_DISCDLGSTRUCTW' : 'struct' type redefinition
error C2011: '_UNIVERSAL_NAME_INFOA' : 'struct' type redefinition
error C2011: '_UNIVERSAL_NAME_INFOW' : 'struct' type redefinition
error C2011: '_REMOTE_NAME_INFOA' : 'struct' type redefinition
error C2011: '_REMOTE_NAME_INFOW' : 'struct' type redefinition
error C2011: '_NETINFOSTRUCT' : 'struct' type redefinition
error C2011: '_NETCONNECTINFOSTRUCT' : 'struct' type redefinition
Can anyone help me solve the problem.
Thanks
Ninoshka
|
|
|
|
|
do you link to mpr.lib?
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
no havent done that. Do i need to include it in linker settings?
|
|
|
|
|
Of course....
What made you think that it could be avoided?
you do get linker errors at compile time after all...
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Member 4549799 wrote: Included the following in stdafx.h
#undef _WINNETWK_
#include <winnetwk.h;>
Why did you undef _WINNETWK_? It was originally defined as an include blocker. Removing the definition causes the include file to be included twice which leads to all the redefinition erros you are seeing.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hi All
How can i hide file name from Program Files folder?plz help me
|
|
|
|
|
MsmVc wrote:
How can i hide file name from Program Files folder?
?
By setting the file attributes to type "HIDDEN"...
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Did you see SetFileAttributes?
|
|
|
|
|
Thanks to both of you..Problem solved through your repply post..
thanks once again..
|
|
|
|
|
why we prefer memory comparision(mmcpy) for string apart from values(strcpy)..
trying to enhance my knowledge..
Thanks in advance
vikas da
|
|
|
|
|
memcpy is used to copy a specified number of bytes to a destination and not for comparison and strcpy is used to copy a string to another location ie source to destination.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
sorry... i wrongly mentioned mmcpy and strcpy those should be mmcmp and strcmp...........
can you please re answer my question
vikas da
|
|
|
|
|
strcmp- compare data between two strings. you don't have the advantage of specifying the number of bytes that you want to compare. It's always the complete string that is compared.
tasumisra wrote: mmcmp
It's memcmp by the way
memcmp provides you the flexibility of comparing bytes in the string by mentioning the count
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks alot ....
one more question
which one should be prefered for
1.Two constant string
2.One const. and one veriable string..
is it strcmp and memcmp respectively for above ..
vikas da
|
|
|
|
|
It depends, whether you want to compare the complete strings or only a few bytes. You should be better off using strcmp in either of the cases if you compare the complete strings
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank you very much ...
vikas da
|
|
|
|
|
I'm currently using 2-dimensional dynamic array as a function parameter to store value of double. My problem is my program sometimes having a runtime error. I've try a m=3200 x n=58 array size, it only run for a wait before aborting the program. When I reduced the size of the array it works. Here is my declaration of the array:
double* precomp=new double[(_CANVAS_WIDTH /_TILE_WIDTH)*(_CANVAS_HEIGHT /_TILE_HEIGHT)*_TILE_COUNT];
int i,j;
for( i = 0; i < (_CANVAS_WIDTH /_TILE_WIDTH) * (_CANVAS_HEIGHT /_TILE_HEIGHT); i++)
for(j=0; j< _TILE_COUNT;j++)
*(precomp + i* _TILE_COUNT+j) = 0.0;
calculate(TheList, Target, precomp); Here is the function implementation :
void calculate(double* param1, double TargetValue, double* precomp)
{
double _tile;
for (unsigned int y=0; y<list_index;> {
for (unsigned int j=0; j<num_of_tiles;> {
_tile = param1[j];
cout<<"Pre-calculating value for location"<<y<<":tile "<<j<<endl;
*(precomp_fitness + i*num_of_tiles + j) = abs(TargetValue - _tile);
}
}
}
If anyone could help me understand what was happening, it is very appreciated. Thanks.
|
|
|
|
|
You probably cannot get meaningful help because:
- Your scenario + code don't give enough info (you state
m=3200 x n=58 ) but in your code there are just other constants (such as _CANVAS_WIDTH ), that are, for us, of undefined value. - Your code is not properly formatted, see wrong syntax in
for iterations inside calculate function. - Your code gives incomplete info (for instance, how are defined the parameters of the
calculate function? - You don't provide any debug info (for instance what is the offending line?). You are strongly advised using the debugger, that is the king of the programmer's tools
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i want to capture desktop and save image on harddisk on path "c\bit.bmp"
i am using following code
HDC dc_desk=::GetWindowDC(::GetDesktopWindow());
HDC dc=CreateCompatibleDC(dc_desk);
HBITMAP hBmp=CreateCompatibleBitmap(dc, 50, 50);
BitBlt(dc, 0, 0, 50, 50, dc_desk, 0, 0, SRCCOPY);
it is compiling without error
how now we can save this image on harddisk path??
|
|
|
|
|
CImage m;
m.Attach(hbitmap);
m.Save(_T(c:\\1.bmp"));
|
|
|
|
|
but i am using vc++ 6.0
Compiler genrate error on "CImage"
is there need to include any type of hearder or library?? if yes then which one?
|
|
|
|