Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~8K People Reached
Favorite Tags
Member Avatar for karang

Hi I have a textbox and a button on a html page. On click of button I want to save the value in the textbox to a particular cell of the excel file I have written the following code [code] var ExcelSheet = new ActiveXObject("Excel.Application"); ExcelSheet.Workbooks.Open("D:\\TEST.XLS"); // Make Excel visible …

Member Avatar for imti321
0
1K
Member Avatar for karang

Hi I am writing a code in VC++ char* style = "color:#4D4DFF;font-size:9pt;font-family:Arial;"; char* semicolonsplit = ""; semicolonsplit = strtok (style,";"); But in the last line I am getting an error " Access violation writing location 0x0041606d." Am I missing something. Regards Karan

Member Avatar for Narue
0
111
Member Avatar for karang
Member Avatar for karang

Hi I have a value of emdash — First of all I want to know Is this — a unicode If Yes How to convert unicode i.e. — into -- using code in VC++ Regards Karan

Member Avatar for ArkM
0
328
Member Avatar for karang
Member Avatar for serkan sendur
0
142
Member Avatar for karang

Hi I want the format of the date like Fri, Dec 12, 2008 Earlier I used CTime today = CTime::GetCurrentTime(); CString chdpl = today.Format("%A, %B %d, %Y" ); for Friday, December 12,2008 But I don't know how to specify Fri in format Regards Karan

0
103
Member Avatar for karang

Hi How to get WeekdayName in VC++ I have searched on net and found the use of CTime::GetCurrentTime(); But this is the lengthy method Is there any shorter one. Kindly advice Regards Karan

Member Avatar for Freaky_Chris
0
188
Member Avatar for karang

Hi I am using the code to get the current date CTime aNow = CTime::GetCurrentTime(); char month[3]; char day[3]; char year[6]; char todaysdate[30]; itoa(aNow.GetMonth(), month, 10); itoa(aNow.GetYear(), year, 10); itoa(aNow.GetDay(), day, 10); strcat(todaysdate,month); I am getting value of month but apart from that I am also getting an unexpected character …

Member Avatar for cikara21
0
143
Member Avatar for karang

Hi I am using Itoa function to convert int to string. CTime aNow = CTime::GetCurrentTime(); char* month; itoa(aNow.GetMonth(), month, 10); But I am getting error Unhandled exception at 0x00573deb in App_Name.exe: 0xC0000005: Access violation reading location 0x0000323d. Am I missing something Regards Karan

Member Avatar for karang
0
101
Member Avatar for karang

HI I have a class className which is an abstract class. I am attaching the definition in the code snipet below. when I am writing the line I am getting an error error C2259: 'className' : cannot instantiate abstract class From this error I have understood that we cannot create …

Member Avatar for grumpier
0
241
Member Avatar for karang

Hi I have defined the class in C++ file as __declspec(dllexport) int clsName ::CreateDocument(char* filein, char* fileout, char* config) where clsName is the class name But after I compiled the code and use the dll in .net code I am getting a run time error "Unable to find an entry …

Member Avatar for Ancient Dragon
0
135
Member Avatar for karang

Hi I have a virtual function setStartupDirectory() virtual bool setStartupDirectory(const SysString &sStartupDirectory) = 0; When I am calling this function setStartupDirectory((const SysString &)m_pApplicationFolderNarrow); I am getting this error Error 2 error C2664: 'setStartupDirectory' : cannot convert parameter 1 from 'const SysString' to 'const SysString &' Am I missing something

Member Avatar for sweeya
0
126
Member Avatar for karang

Hi I am writing a function in C++ extern "C" { __declspec(dllexport) void CreateInputFilter() { ITestPtr pTest = createInstance<ITest>(m_Test); } } But I am getting this error m_Test' : undeclared identifier The main thing is above this function I have written the same code above in another function but there …

Member Avatar for karang
0
207
Member Avatar for karang

Hi I am made a library project. Now I want to use the functions of dll in another project. As I am new to C++ I don't know how to import the dll and use its function. Is there any tutorial that elaborates these things. Thanks in advance Karan

Member Avatar for Ancient Dragon
0
75
Member Avatar for karang

Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing …

Member Avatar for cikara21
0
303
Member Avatar for karang

Hi I have declared the class in the header file class Test{ public: // Constructor Test(); // Variables IClassFact *m_pClassFact; }; But I am getting an error error C2143: syntax error : missing ';' before '*' And also I am getting this error error C4430: missing type specifier - int …

Member Avatar for ArkM
0
188
Member Avatar for karang

Hi I have include a header file in my main file. That header file contains the function getPath But still I am getting this error error C3861: 'getPath': identifier not found Even I have written the prototype of the function. Regards Karan

Member Avatar for cikara21
0
157
Member Avatar for karang

Hi I am trying to use MSXML. But I am getting error in that so I explored internet and found one useful articles regarding the installation of MSXML [url]http://msdn.microsoft.com/en-us/library/ms758753(VS.85).aspx[/url] This article is about "Include Headers and Libraries Manually" But as per the instruction given in this article I have to …

Member Avatar for karang
0
155
Member Avatar for karang

Hi I am new to C++ Can anyone please tell me how to refer .lib files in C++ Regards Karan |

Member Avatar for Agni
0
86
Member Avatar for karang

HI I am getting this error Error 11 fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or directory I have included the following statement in the code using namespace Test; Can anyone please tell me the reason for this .

Member Avatar for Agni
0
238
Member Avatar for karang

Hi I have a image control in HTML. By using setTimeOut() I am changing the image in the image control but what I want is to give diffuse effect to the image while changing. Is that possible. Kindly advice Regards Karan

Member Avatar for Troy III
0
41
Member Avatar for karang

Hi There are control tags in RTF file according to rtf specifications like \rtf1 \ansi etc. There is page break control word \page (or \pagebb) to indicate the page break will occur. I have made a RTF document in which there are three pages. Still I am not getting the …

0
18
Member Avatar for karang

Hi I am using a function InitDocStruct() to initialize the document I want to print through my program. Definition of the function is [code=c++] void InitDocStruct( DOCINFO* di, char* docname) { // Always zero it before using it. memset( di, 0, sizeof( DOCINFO ) ); // Fill in the required …

Member Avatar for mitrmkar
0
125
Member Avatar for karang

Hi I am using Dev C++ for my development purpose. I have few queries 1. Can I use it for making professional applications. 2. Is Dev C++ is same as Visual C++. Kindly advice Regards Karan

Member Avatar for Alex Edwards
0
108
Member Avatar for karang

Hi I am writing a code in which I have to display the print dialog. PRINTDLG pdlg; memset( &pdlg, 0, sizeof( PRINTDLG ) ); pdlg.lStructSize = sizeof( PRINTDLG ); pdlg.Flags = PD_RETURNDEFAULT | PD_RETURNDC; PrintDlg( &pdlg ); But I am getting an error message "[Linker error] undefined reference to `PrintDlgA@4' …

Member Avatar for mitrmkar
0
902
Member Avatar for karang

Hi All I have written a code to change the settings of printer Orientation(i.e. Landscape or Portrait) I have written following code [code=C++] void SetDefaultPrinterOrientation(short dmOrientation) { HANDLE hPrinter = NULL; LPTSTR pPrinterName = NULL; DWORD dwNeeded = 0; PRINTER_INFO_2 *pi2 = NULL; DEVMODE *pDevMode = NULL; PRINTER_DEFAULTS pd; BOOL …

Member Avatar for karang
0
124
Member Avatar for karang

Hi I have made a program that will change the settings of printer orientation. But I am getting linker error. " [Linker error] undefined reference to `OpenPrinterA@12' " I am not able to find out the reason. Kindly advice Regards Karan Gupta

Member Avatar for Ancient Dragon
0
496
Member Avatar for karang

Hi I was trying the code written in the following URL http://support.microsoft.com/kb/117565 to get the information about the page size But when I try to run the program I am getting the following errors: `CMyView' has not been declared `CSize' was not declared in this scope `CMyView' has not been …

Member Avatar for mitrmkar
0
94