Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

extern "C" const ÎÊÌâ

    ³õѧWINDOWS API

      extern "C" const IMAGE_DOS_HEADER  __ImageBase;

void DumpModule(){
HMODULE hModule = GetModuleHandle(Null);
_tprintf(TEXT("with GetModuleHandle(NULL)= 0x%x\r\n"),hModule);

_tprintf(TEXT("with __ImageBase= 0x%x\r\n"),(HINSTANCE)&__ImageBase);

}
int main(int argc, char* argv[])
{
DumpModule();
return 0;
}


      Àý×Ó±àÒë³ö´í£¬µÚÒ»¾ä¾ÍÓÐÎÊÌ⣬²»Ã÷°×Ϊʲô£¿£¿
C/C++ code:
#include<windows.h>
#include<tchar.h>
#include<stdio.h>
extern "C" const IMAGE_DOS_HEADER __ImageBase;

void DumpModule()
{
HMODULE hModule = GetModuleHandle( NULL );
_tprintf( TEXT( "with GetModuleHandle(NULL)= 0x%x\r\n" ),hModule );
_tprintf( TEXT( "with __ImageBase= 0x%x\r\n" ),( HINSTANCE )&__ImageBase );
}
int main( int argc, char* argv[] )
{
DumpModule();
return 0;
}


If this parameter is NULL, GetModuleHandle returns a handle to the file used to create the calling process (.exe file).
¸øGetModuleHandle£¨£©´«µÝnull »ñÈ¡calling processµÄ¾ä±úÊÇÄãµÄ±¾ÒâÂð Äã˵µÄ³ö´íÊÇÕâ¾äÂð£¿

__ImageBaseÔÚÄ͍ÒåµÄ

C/C++ code



Code


Ïà¹ØÎÊ´ð£º

jspÖÐ <c:if test> Ïà¹ØÎÊÌâ

ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
      fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......

ΪʲôCдDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷ÓÃ

ΪʲôCдµÄDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷Óã¿
VBÀïΪʲôÓеÄDLLÖ±½Óͨ¹ýÒýÓÿÉÒÔʹÓã¿ÓеÄÐèҪͨ¹ýdeclareÉêÃ÷Íⲿº¯Êý£¿ÕâЩDLLÓÐʲô²î±ð£¿

1¡¢ÎªÊ²Ã´PBÄÜͨ¹ýDECLAREÉùÃ÷¶øVB²»ÐУ¿
2¡¢Èç¹ûÕâ¸ödllÖÐµÄ ......

PHPÀ©Õ¹CʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

C ѧÍê»ù´¡Äã¸Ã¸Éɶ

  ÏÖÔÚÌ·ºÆÇ¿µÄCÓïÑÔÒѾ­¿ìѧÍüÁË£¬µ«¶¼ÊǺܻù´¡µÄ¶«Î÷¸Ð¾õ£¬²»ÄܸÉʲô£¬ÒªÏëÔÙÌáÉý½ÓÏÂÀ´¸ÉµãɶºÃ


ÕÒ±¾¡¶Cר¼Ò±à³Ì¡·¿´¿´¡£ÄDZ¾ÊéÀïµÄ¶«Î÷²ÅÕæÕý½Ð»ù´¡¡£

¶¯ÊÖ
ѧÊý¾Ý½á¹¹
²¢±à³ÌʵÏÖ

Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ