| ²é¿´: 276 | »Ø¸´: 1 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
jiali2843½ð³æ (ÕýʽдÊÖ)
|
[½»Á÷]
¡¾ÇóÖú¡¿VCµ÷ÓÃVBÉú³ÉµÄdll³ö´í£¬ÇóÖú
|
||
|
´íÎóÐÅÏ¢£º Test.cpp C:\Documents and Settings\Owner.LENOVO-52CEDA01\×ÀÃæ\Test.cpp(23) : error C2664: 'readGAM60Value' : cannot convert parameter 1 from 'char [9]' to 'unsigned short ** ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Error executing cl.exe. VBÉú³ÉµÄdll¼û¸½¼þ ³ÌÐò´úÂ룺 #include // This is the path for your DLL. // Make sure that you specify the exact path. #import "d:\project1.dll" no_namespace void main() { BSTR bstrDesc; try { CoInitialize(NULL); // Declare the Interface Pointer for your Visual Basic object. here, // _Class1Ptr is the Smart pointer wrapper class representing the // default interface of the Visual Basic object. _Class1Ptr ptr; // Create an instance of your Visual Basic object, here // __uuidof(Class1) gets the CLSID of your Visual Basic object. ptr.CreateInstance(__uuidof(Class1)); double jiaodu =ptr->readGAM60Value("2330300D" ; } catch(_com_error &e) { bstrDesc = e.Description(); } CoUninitialize(); } [ Last edited by jiali2843 on 2009-9-28 at 09:28 ] |
» ²ÂÄãϲ»¶
299Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
Ò»Ö¾Ô¸±±¾©Àí¹¤´óѧ±¾¿Æ211²ÄÁϹ¤³Ì294Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
300Çóµ÷¼Á£¬²ÄÁÏ¿ÆÑ§Ó¢Ò»Êý¶þ
ÒѾÓÐ8È˻ظ´
ÕÐÊÕÉúÎïѧ/ϸ°ûÉúÎïѧµ÷¼Á
ÒѾÓÐ5È˻ظ´
070305¸ß·Ö×Ó»¯Ñ§ÓëÎïÀí 304·ÖÇóµ÷¼Á
ÒѾÓÐ7È˻ظ´
289Çóµ÷¼Á
ÒѾÓÐ13È˻ظ´
Ò»Ö¾Ô¸¹þ¶û±õ¹¤Òµ´óѧ²ÄÁÏÓ뻯¹¤·½Ïò336·Ö
ÒѾÓÐ9È˻ظ´
081200-11408-276ѧ˶Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
µ÷¼ÁÇóԺУÕÐÊÕ
ÒѾÓÐ5È˻ظ´
µ÷¼Á310
ÒѾÓÐ8È˻ظ´
jjdg
°æÖ÷ (ÖªÃû×÷¼Ò)
- ³ÌÐòÇ¿Ìû: 9
- Ó¦Öú: 223 (´óѧÉú)
- ¹ó±ö: 3.926
- ½ð±Ò: 51005.2
- ºì»¨: 238
- Ìû×Ó: 7227
- ÔÚÏß: 474.2Сʱ
- ³æºÅ: 27000
- ×¢²á: 2003-10-21
- רҵ: Ò©Îï´úлÓëÒ©ÎﶯÁ¦Ñ§
- ¹ÜϽ: ³ÌÐòÓïÑÔ
¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
jiali2843(½ð±Ò+1):лл²ÎÓë
jiali2843(½ð±Ò+9,VIP+0):·Ç³£¸ÐлÄã°ïÎÒÐ޸ijÌÐò£¡ 10-3 23:25
jiali2843(½ð±Ò+1):лл²ÎÓë
jiali2843(½ð±Ò+9,VIP+0):·Ç³£¸ÐлÄã°ïÎÒÐ޸ijÌÐò£¡ 10-3 23:25
|
ÄãµÄ²ÎÊýÊÇÔõô´«µÄ£¿ ¿´ÄãÕâ¸öº¯ÊýµÄÃû×ÖºÍliÀÏÐÖµÄÃû×Ö¶¼ÊÇÒ»ÑùµÄ£¬Äã¿ÉÒÔÊÔÊÔÖ±½Ó×öûÓд°ÌåµÄexe×Ô¶¯»ñÈ¡²ÎÊý²¢±£´æÓÚÒ»ÖÆ¶¨ÎļþÖУ¬È»ºóÔÚcÀïÃæÉ趨һ¸ö°´Å¥Ê¼þÈ¥¶ÔÄǸöÎļþ½øÐвÙ×÷¼´¿É£¡ [ Last edited by jjdg on 2009-10-4 at 11:43 ] |

2Â¥2009-10-02 00:15:28














;
»Ø¸´´ËÂ¥