Forum: C++ Jan 2nd, 2009 |
| Replies: 2 Views: 576 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... |
Forum: C++ Dec 18th, 2008 |
| Replies: 3 Views: 554 if I have a variable called text of type char* then
What should I write in VC++ so that it assigns emdash value in the variable text |
Forum: C++ Dec 17th, 2008 |
| Replies: 3 Views: 554 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 |
Forum: C++ Dec 17th, 2008 |
| Replies: 0 Views: 1,183 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" ); |
Forum: C++ Dec 17th, 2008 |
| Replies: 7 Views: 1,059 Hi
How to convert CString to char* in C++
Regards
Karan |
Forum: C++ Dec 17th, 2008 |
| Replies: 3 Views: 811 Hi Chris
For Example today is wednesday.
How can I get the Week day Name i.e. Sunday, Monday ... from VC++
Regards
Karan |
Forum: C++ Dec 17th, 2008 |
| Replies: 3 Views: 811 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. |
Forum: C++ Dec 17th, 2008 |
| Replies: 1 Views: 403 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,... |
Forum: C++ Dec 17th, 2008 |
| Replies: 2 Views: 337 Hi
Thanks a lot
My problem is solved |
Forum: C++ Dec 17th, 2008 |
| Replies: 2 Views: 337 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 |
Forum: C++ Dec 10th, 2008 |
| Replies: 3 Views: 2,068 Hi
I have a question regarding the abstract class.
If the class contains 5 pure virtual methods then it is necessary to implement all the methods of the class by the derived class.
Regards... |
Forum: C++ Dec 10th, 2008 |
| Replies: 3 Views: 2,068 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' :... |
Forum: C++ Dec 9th, 2008 |
| Replies: 3 Views: 1,040 Hi
I went through different websites. But I didn't get any tutorial that can tell me how to import a class in C#
Can you please help me out.
Regards
Karan |
Forum: C++ Dec 9th, 2008 |
| Replies: 3 Views: 1,040 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... |
Forum: C++ Dec 5th, 2008 |
| Replies: 3 Views: 423 Hi
I have a function
bool setStartupDirectory(const SysString &sStartupDirectory)
{}
Now I want to give the prototype of the function how can I do that |
Forum: C++ Dec 5th, 2008 |
| Replies: 3 Views: 423 Hi
I have a virtual function setStartupDirectory()
virtual bool setStartupDirectory(const SysString &sStartupDirectory) = 0;
When I am calling this function
setStartupDirectory((const... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 2 Views: 277 Hi
If I change the definition to
extern "C"
{
__declspec(dllexport) void cls :: CreateInputFilter()
{
ITestPtr pTest = createInstance<ITest>(m_Test); |
Forum: C++ Dec 3rd, 2008 |
| Replies: 2 Views: 277 Hi
I am writing a function in C++
extern "C"
{
__declspec(dllexport) void CreateInputFilter()
{
ITestPtr pTest = createInstance<ITest>(m_Test); |
Forum: C++ Dec 3rd, 2008 |
| Replies: 1 Views: 332 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... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 2 Views: 2,300 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 : ... |
Forum: C++ Dec 2nd, 2008 |
| Replies: 4 Views: 2,191 Hi
I have declared the class in the header file
class Test{
public:
// Constructor
Test();
// Variables
IClassFact *m_pClassFact; |
Forum: C++ Dec 1st, 2008 |
| Replies: 3 Views: 728 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 |
Forum: C++ Dec 1st, 2008 |
| Replies: 3 Views: 560 Hi
Yes I have MSXML6.dll present in c:\Program Files\System32
It is working fine in one project but I am unable to configure it another project
Regards
Karan |
Forum: C++ Dec 1st, 2008 |
| Replies: 3 Views: 560 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
... |
Forum: C++ Nov 26th, 2008 |
| Replies: 2 Views: 979 Hi
I am new to C++
Can anyone please tell me how to refer .lib files in C++
Regards
Karan
| |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 2,461 Hi
I have created the folder in the root folder of the project.
Regards
Karan |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 2,461 Hi
Let me elaborate it
I have opened a VC++.net project
When I compile the project I am getting an error.
fatal error C1083: Cannot open include file: 'Test/Testnamespaces.h': No such file or... |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 2,461 Hi
How can I set the include path in C++ using command line
Regards
Karan |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 3,324 Hi
I have a simple question
what is the difference between #include <Test/Test.h> and #include "Test/Test.h"
I am sorry but I am very new to C++
The reason I am asking this because when... |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 3,324 Hi
I am getting this error when I build the project.
I am getting this error in a cpp file
Include statement is
#include <Test/iTestmetafactory.h> |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 3,324 Hi
Thanks for the reply
You mean to say you want the code of file
Testnamespaces.h |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 3,324 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
... |
Forum: C++ Jul 23rd, 2008 |
| Replies: 5 Views: 776 Here is the code
#include <windows.h>
#include <iostream>
#include <limits>
#include <string>
#include <windows.h> |
Forum: C++ Jul 23rd, 2008 |
| Replies: 5 Views: 541 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++. |
Forum: C++ Jul 23rd, 2008 |
| Replies: 5 Views: 776 Hi
I am using a function InitDocStruct() to initialize the document I want to print through my program.
Definition of the function is
void InitDocStruct( DOCINFO* di, char* docname)
... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 4 Views: 784 Hi
Linking problem is solved but Print Dialog is not shown
Regards
Karan |
Forum: C++ Jul 22nd, 2008 |
| Replies: 4 Views: 784 Hi
I am writing a code in which I have to display the print dialog.
[code language="C++"]
PRINTDLG pdlg;
memset( &pdlg, 0, sizeof( PRINTDLG ) );
pdlg.lStructSize = sizeof( PRINTDLG );... |
Forum: C++ Jul 22nd, 2008 |
| Replies: 2 Views: 611 |
Forum: C++ Jul 22nd, 2008 |
| Replies: 2 Views: 611 Hi All
I have written a code to change the settings of printer Orientation(i.e. Landscape or Portrait)
I have written following code
void SetDefaultPrinterOrientation(short... |
Forum: C++ Jul 21st, 2008 |
| Replies: 5 Views: 510 Hi
I am using DEV C++. Do I still need to link to libwinspool.a. If yes then what is the procedure to do that
Regards
Karan |