Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~7K People Reached
Favorite Tags
Member Avatar for chintan_1671

I migrated the code from C++ to VS C++.Net. I got following error. u.ui2_local = (char *) wcsLocal; u.ui2_remote = (char *) wcsRemote; error C2440: '=' : cannot convert from 'char *' to 'LPWSTR' for both. rc = NetUseDel(NULL, (char *) wcsPath, lForce ? USE_LOTS_OF_FORCE : USE_NOFORCE); error C2664: 'NetUseDel' …

Member Avatar for thines01
0
215
Member Avatar for chintan_1671

I converted old C++ project to VS.Net 2010 with 4.0 Framework. error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatView:: * )(LPARAM,WPARAM)' to 'LRESULT (__thiscall CWnd:: * )(WPARAM,LPARAM)' [CODE] // .cpp File ON_MESSAGE(WM_ChatAddSize, OnChatAddSize) void CChatView::OnChatAddSize(LPARAM lParam, WPARAM wParam) // .h file afx_msg void OnChatAddSize(LPARAM lParam, WPARAM wParam); [/CODE] …

Member Avatar for thekashyap
0
1K
Member Avatar for chintan_1671

[CODE] // mainfrm.h enum { logAll = 0xff }; void Log(int nIdx, LPCTSTR lpText, int nType = logAll, LPCTSTR lpDeviceName = NULL); //SesLog.h int m_nDeviceID; CString m_strDeviceName; // SesLog.cpp #include "Mainfrm.h" #include "SesLog.h" void CSessionLog::Log(LPCSTR lpText) { if(m_pParent) m_pParent->Log(m_nDeviceID, lpText, logAll, m_strDeviceName); [/CODE] error LNK2019: unresolved external symbol "public: void …

Member Avatar for Narue
0
282
Member Avatar for chintan_1671

I am creating a Win32 Dll Wrapper around my C# class library. I am able to pass string from my C# to C++ application. But i am not sure as to how can i pass string array in Win32 C++ project. [CODE] //C# code void Test(string lFile, int ver); //C++ …

Member Avatar for Ancient Dragon
0
434
Member Avatar for chintan_1671

Hi i have a C++ DLL. What i am doing is that i am passing memory address to my C++ dll where it write message on that address and i want to read the message from that memory address. Here is my C++ function. [code] int _stdcall Test(int res, wchar_t …

Member Avatar for chintan_1671
0
723
Member Avatar for chintan_1671

I am a newbie, so it might seems a silly question. I have a login form which calls other form where it says .. "please wait while it loads". in form 2 i have a label for that. Now the problem is that the text for that label doesnot appears …

Member Avatar for chintan_1671
0
69
Member Avatar for chintan_1671

I have created a C++ Win32 Dll. I have created a .def File which contains the names of the functions in Win32.Dll As: 1Win32.cpp includes a class library file named gs.tlb It has functions named sum, strupper 1win32.def as LIBRARY "1WIN32" EXPORTS sum strupper When i try to register the …

Member Avatar for chintan_1671
0
264
Member Avatar for chintan_1671

I have a managed class library developed in C#. Now i need to create a win 32 dll wrapper around it. So in my Win 32 DLL i need to import that class library and call the starting point functions from it. I am new on this. I was able …

Member Avatar for chintan_1671
0
257
Member Avatar for chintan_1671

I am facing a small problem. Something i might have mis understood. If u see the code without using a function if i print the message then i am getting proper output. But after i create Error function and print message from main function it is creating some problem. I …

Member Avatar for chintan_1671
0
214
Member Avatar for chintan_1671

I am creating new thread everytime in the for loop .. but many times the loop takes the same filename and creates new thread. Doesn't Work: [code] foreach (string s in fileEntries) { t = new Thread(() => Shrink(s)); t.Start(); } [/code] I have tried individually for each file creating …

Member Avatar for chintan_1671
0
199
Member Avatar for chintan_1671

I have a string and i want to copy at specified memory location. Suppose i have a pre-allocated memory represented by char* logFile (unsafe code) I have a generated string which contains the name of log file. I want to copy that string on location represented by char*. Please help …

Member Avatar for kvprajapati
-1
251
Member Avatar for chintan_1671

I have a byte array which looks something like 01 00 02 00 73 45 69 A5 So i have to read first 2 bytes and convert it into integer to get its value. Same for next 2 bytes and then next 4 bytes. Here the value for first 2 …

Member Avatar for ddanbe
0
235
Member Avatar for chintan_1671

I want to create a WIN32 API in C#. I was looking as to what would be the best option to create a new project for WIN32 API in C#. I saw that in C++ in Visual Studio, there is one option to create MFC Application but not in C#. …

Member Avatar for chintan_1671
0
172
Member Avatar for chintan_1671

Can any one help me to convert this delphi code to C#. class function TShrinkConfig.MyVersion: WORD; var ini: TIniFile; begin ini := TIniFile.Create(gsIniFile); Result := ini.ReadInteger( SHRINK_INI_SETUP_SECTION, SHRINK_INI_MYVERSION, SHRINK_INI_VERSION_1); ini.Free; end; if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then .... I searched online that TiniFile corresponds to FileStream in C#. But i am …

Member Avatar for chintan_1671
0
249
Member Avatar for chintan_1671

Hi i have a code which counts no of lines in a code. I want something like it reads a file and counts all lines in a code. Ex: ls cd date ls ls cd cd ls cd ls I want to print output like: ls cd # 2 date …

Member Avatar for chintan_1671
0
150
Member Avatar for chintan_1671

I have created a binary tree. I have a function which counts the odd values from nodes of tree. I am always getting the output as if it is just returning the odd count from node->right. I am loosing the value of node->left count. [code=c] #include <stdio.h> #include <stdlib.h> #include …

Member Avatar for chintan_1671
0
2K
Member Avatar for chintan_1671

I have a button which starts processing. I want that when ever a button is click from page1.aspx .. a count down timer should start and displayed on page2.aspx. I am thinking of using iframe to join 2 pages. Please let me know your suggestions. Thanks

Member Avatar for dnanetwork
0
77
Member Avatar for chintan_1671

I want to run a function just for specific time (say 10 min). After specific time it will return successful if it is able to execute the function successfully or unsuccessful. The function does a large amount of data processing and updating the tables. I want to stop executing that …

Member Avatar for chintan_1671
0
132