Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

Thangnc

@Thangnc
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Insert data into file excel ?
    T Thangnc

    I had one file template type "file_1.xls". I need open file this and insert data in sheet of file. But at present because of me haven't been processed. Can you hepl me and give a examples to me ?

    Visual Basic question

  • Insert data into file excel ?
    T Thangnc

    I had one file template type "file_1.xls". I need open file this and insert data in sheet of file. But at present because of me haven't been processed. Can you help me and give a examples to me ?

    Visual Basic help question

  • Why do not Upload a file on host by ASP
    T Thangnc

    I want Uploaad a file on host with condition from localost. Can you help me ?

    Web Development help question

  • Why Error ?
    T Thangnc

    I used function VarBstrFromI1 conver char to BSTR: //Adsoft.cpp STDMETHODIMP CMyData::get_CGetComputerName(BSTR *pVal) { // TODO: Add your implementation code here char szHostName[200];//char* szHostName gethostname(szHostName,strlen(szHostName)); struct hostent* strTemp; strTemp=gethostbyname(szHostName); if(strTemp !=NULL) strcpy(szHostName,strTemp->h_name); BSTR* abc; if(VarBstrFromI1(szHostName,abc)==S_OK) pVal=abc; return S_OK; } Program error: error C2660: 'VarBstrFromI1' : function does not take 2 parameters -- modified at 0:19 Friday 26th August, 2005

    ATL / WTL / STL c++ help question

  • I want created a file DLL by ATL ?
    T Thangnc

    To succeed beyond one's expectations . Thank you very much !

    ATL / WTL / STL c++ sysadmin debugging help tutorial

  • I want created a file DLL by ATL ?
    T Thangnc

    I write all idem.I unused direction for use function this You can help me? I am in urgent need of project Thanks Steve S!

    ATL / WTL / STL c++ sysadmin debugging help tutorial

  • I want created a file DLL by ATL ?
    T Thangnc

    I created project Client/Server by ATL export file Adsoft.DLL. But Build to appear any error. MySocket.obj : error LNK2001: unresolved external symbol __imp__socket@12 Debug/AdSoftClientDLL.dll : fatal error LNK1120: 1 unresolved externals //Adsoft.idl [id(1), helpstring("method Get")] HRESULT SetPort(); //Adsoft.cpp STDMETHODIMP CMySocket::SetPort() { // TODO: Add your implementation code here SOCKET m_str; m_str=socket(AF_INET,SOCK_STREAM,0);// error when to call function a here if(!m_str)Messabox(NULL,"ERROR !!!","?????",MB_OK) return S_OK; } if can you send back to give me a example Thanks All !

    ATL / WTL / STL c++ sysadmin debugging help tutorial

  • I want a file DLL write by VC++ used in VisualBasic ?
    T Thangnc

    I created a file DLL by VC++. After that to insert in VisualBasic I do following: From Menu choose Project->Reference...-> Browse to file *.DLL (Adsoft.DLL) Choose in ComboList (Prọect/Library)->Adsoft But any class and function in there don't to appear. If possible. Can you give me an example ? I write this class following: //VC++ // Adsoft.H #ifdef ADSOFT_IMPL #define CLASS_DECL_ADSOFT _declspec(dllexport) #else #define CLASS_DECL_ADSOFT _declspec(dllimport) #endif #undef AFX_DATA #define AFX_DATA CLASS_DECL_ADSOFT class AdsoftDLL : public CSocket { public: BOOL CGetCheckErro(int nErroCode); }; #undef AFX_DATA #define AFX_DATA // Adsoft.cpp #include "afxdllx.h" #include "Adsoft.h" BOOL CGetCheckErro(int nErroCode) { if (nErroCode==0) return FALSE; return TRUE; } But to happen phenomenon don't to want Thanks!

    C / C++ / MFC c++ tutorial question

  • I want a file DLL write by VC++ used in VisualBasic ?
    T Thangnc

    Thanks DavidCrow! I don't think your ? I write this class following: // Adsoft.H #ifdef ADSOFT_IMPL #define CLASS_DECL_ADSOFT _declspec(dllexport) #else #define CLASS_DECL_ADSOFT _declspec(dllimport) #endif #undef AFX_DATA #define AFX_DATA CLASS_DECL_ADSOFT class AdsoftDLL : public CSocket { public: BOOL CGetCheckErro(int nErroCode); }; #undef AFX_DATA #define AFX_DATA // Adsoft.cpp #include "afxdllx.h" #include "Adsoft.h" BOOL CGetCheckErro(int nErroCode) { if (nErroCode==0) return FALSE; return TRUE; } But to happen phenomenon don't to want

    C / C++ / MFC c++ tutorial question

  • I want a file DLL write by VC++ used in VisualBasic ?
    T Thangnc

    :^)Hi all! I created a file DLL by VC++.After that to insert in VisualBasic I do following: From Menu choose Project->Reference...-> Browse to file *.DLL (Adsoft.DLL) Choose in ComboList (Prọect/Library)->Adsoft But any class and function in there don't to appear. If possible. Can you give me an example ? Thank !

    C / C++ / MFC c++ tutorial question

  • I need use a file DLL
    T Thangnc

    I creat a file DLL by MFC use VisualBasic. But Input and Ouput don't compatible: // C++ extern "C" void PASCAL EXPORT CCreatFile(char lptFileName[20],char lptPath[200]) { FILE *ptrFile; char lptstr[250]; strcpy(lptstr,lptPath); strcat(lptstr,lptFileName); strcat(lptstr,".ads"); if(lptstr ==NULL) { MessageBox(NULL," File NULL!!!","Adsoft !",MB_ICONWARNING|MB_OK); return; } ptrFile=fopen(lptstr,"wb"); if(ptrFile ==NULL) { MessageBox(NULL,"Can't creat File !","Adsoft warning !",MB_ICONWARNING|MB_OK); return; } fclose(ptrFile); } // VB Private Declare Sub CCreatFile Lib "AdsoftDLL.dll" (TenB1 As String, Tenb2 As String) Private Sub Form_Load() Dim fileName As String Dim PathName As String fileName = "KimDo" PathName = "C:\\" Call CCreatFile(fileName, PathName) End Sub result erroneous

    C / C++ / MFC c++ delphi
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups