|
As per the documentation in the source, by defining USE_MALLOC_LOCK, you get thread safe versions of the routines.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
|
|
Hi,
I know that there is a share memory technique with Linux. Is
there a same share memory technique for windows and VC++ (two cpus)?
Any reference?
Thanks in advance!
chen
|
|
|
|
|
I'm not sure about what Linux is doing but there are several way to share memory between applications. Memory mapped files and defining a shared section in a common dll are two.
John
|
|
|
|
|
|
When I use IShellFolder->EnumObjects for folder retieve at the root namespace(desktop), the folder list I got is strange.
first, the "My Documents" Shell linked folder is not the first subfolder under desktop, unlike what we see when using explorer.exe or File-Open dialogs.
second, a special folder named "Internet Explorer", But when we use File-Open Dialog, It does not appear in the folder combobox.
Can I do the same like the folder combobox in File-Open Dialog?
How to do?
Thanks.
|
|
|
|
|
hi.
I´m recovering a field´s value with CString x = (LPCSTR) (_bstr_t)pRs_SP->Fields->Item["id_symposium"]->Value ;
but It has a problem when Value is NULL, how can I solve it?
el hombre arriesga su vida cada vez que elige y eso es lo que lo hace libre
|
|
|
|
|
You have to check it explicitly. Probably best to wrap this in a function:
CString VariantToString( const _variant_t& var )
{
if ( var.vt == VT_EMPTY || var.vt == VT_NULL )
{
return CString( );
}
else
{
_bstr_t bstrVar( var );
CString strVar( (LPCWSTR)bstrVar );
return strVar;
}
}
and then use it like this:
CString x = VariantToString( pRs_SP->Fields->Item["id_symposium"]->Value );
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
<smallel hombre="" arriesga="" su="" vida="" cada="" vez="" que="" elige="" y="" eso="" es="" lo="" hace="" libre="">
|
|
|
|
|
Hi, everyone!
I am writing two small funtions, one is used to change from
hex string to decimal string, and the other one is vice versa.
For example, I simply use sprintf(..."%X" ...) to change from
decimal string to hex string and use "%02X" to set filling
character. When changing from decimal to hex, I need two functions
one of which will put 0 before the converted value if it is only
one bit, for example, 10 --> 0A. Another one do not have the function,
for example, 10 --> A. When changing from decimal to hex, I need
only one function. I want to know whether there are some more effienet
ways?
Thanks in adavnce,
George
|
|
|
|
|
Use strtol() to convert from base 16 to base 10.
|
|
|
|
|
Thanks, DavidCrow buddy!
George
|
|
|
|
|
Thanks, DavidCrow buddy!
I have another question. How to change from base 10
to another base? The function strtol() you introduced
to me can only change from base 16 to base 10.
regards,
George
|
|
|
|
|
Have you tried itoa()?
int num = 1234;
char str[32];
itoa(num, str, 8);
|
|
|
|
|
Thanks, DavidCrow buddy!
George
|
|
|
|
|
Has anyone done this? I currently have both Visual Studio 6.0 and VS.NET installed and would like to use the latest help system in both environments.
The way things are set up right now, I get the annoying message "The MSDN collection does not exist. Please reinstall MSDN." when I press F1 in VS 6.0. Things however work as expected in VS.NET.
Anyone?
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Hello,
I am currently programming an application which embeds the Internet Explorer to display HTML pages.
I want to provide the users buttons like 'Go Back' and 'Go Forward'. It is easy to make the Internet Explorer do this (member functions .GoBack() and .GoForward()), but an error messagebox pops up if I call GoBack and am on the start page (so there is no previous page).
Is it possible to supress these messageboxes
-or-
How can I check if a previous/next page is available?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
IE notifies you when you can and can't go back/forward. Intercept the OnCommandStateChange event (DISPID_COMMANDSTATECHANGE):
void __stdcall CWebBrowserWindow::OnCommandStateChange(
long Command, VARIANT_BOOL Enable )
{
switch( Command )
{
case CSC_NAVIGATEFORWARD:
m_bCanGoForward = ( Enable == VARIANT_TRUE ) ? true : false;
break;
case CSC_NAVIGATEBACK:
m_bCanGoBack = ( Enable == VARIANT_TRUE ) ? true : false;
break;
default:
break;
}
}
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Where shall I implement this function? In my main application? If in my main application, how do I tell IE to use this callback function?
Thanks for your help!
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I can tell you exactly how to do this if you are using ATL/WTL but I haven't got the code available for an MFC implementation. Basically what you have to do is to register with the web browser control that you want to receive events from it and then intercept the messages you want. In MFC you would probably use the BEGIN_EVENTSINK_MAP macro just to give you a hint.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Unfortunately I am using MFC without ATL/WTL.
I will try the BEGIN_EVENTSINK_MAP macro.
Thank you very much for your help!
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I am trying to incorporate GDI+ drawing functions in my APP. I have seen that when doing so the print preview is
reduced to a ridiculuous size, while the printing action
remains OK.
Is there a way to solve this problem ?
thanks
jac.
|
|
|
|
|
Hi.
I'm creating a simple server-client application.
The client should listen for commands from the server, eg the server sends a shutdown command to the client, and then the client will shutdown windows.
But i'm not certan how to shutdown windows? is there any functions or anything like that?
Also, I'm in need of a way to turn of the monitor when a certan command has been send from the server to the client, but i'm not sure what to look at.
Thanks for any help I could get;P.
|
|
|
|
|
You can exit windows with ExitWindowsEx()
modified 12-Sep-18 21:01pm.
|
|
|
|