|
Hmm sorry to be sounding so silly, but under my project->settings->General tab erm there is no options or wherever that i can change Character set to Unicode set. There doesnt seem to be any options for this.
Yup, my chinese characters do appear in my database and also in chinese websites so i guess theres no problem there.
I still seriously think its something to do with the codes?
Gaaah...!
|
|
|
|
|
Which version of Visual C are u using. I have got Visual C 7.1 (Visual studio 2003) and these settings are available there as I said. And I have checked it for Visual C 7.0 as well. It's available at a similar place there as well.
Still Alone in this beautiful world
My Articles
|
|
|
|
|
|
Is Visual Studio 7.0 Visual Studio C++.NET?
Are the compiler options there?
Under the Language property page?
Thanks.
|
|
|
|
|
OK now i got the configuration for both VC 7 and VC 6.
For VC 6
Go to Project Settings . C++. Change category to Preprocessor and add _UNICODE in Preprocessor definitions. Then go to Link. Change Category to Output and put wWinmainCRTStartup as Entry-point symbol.
For VC7 or VC.NET
Go to Project Properties. In General, change Character set to "Use Unicode Character Set". In C/C++ -> Preprocessor Definitions, Add _UNICODE. In Linker->Advanced. In Entry point, put wWinMainCRTStartup as Entry point.
I Hope now this works for both VC6 and VC7.
Regards
Still Alone in this beautiful world
My Articles
|
|
|
|
|
I have already configured all the things that you have mentioned. When I compile my codes, there are no errors and no warnings but the output display is still as question marks. (???)
I just recently installed VC.NET in the hopes of getting a solution.
Is .NET and C# the same thing?
|
|
|
|
|
Hi,
does anyone know how can I remove some of the functions that the shut down dialog box of Windows XP has?
For example how can I remove the "Restart" function?
Thanks in Advance
sirtimid
|
|
|
|
|
Hi
I believe the correct way to do this is implement your own GINA dll (search for GINA in the MSDN).
HTH
Martin
|
|
|
|
|
I think just modify some registry key to reach your goal.
|
|
|
|
|
hi,
can anyone help me with Reminder application source code
|
|
|
|
|
With what part, specifically?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hi,
i have maintained all my Reminder info in records..say m_pSet->ReminderDate....etc...
problem for me i cant get a logic...
I am using onTimer() function in which i want a logic so that i may search for created records(say for nrecords) everytime and whenever i found the Exact match with syatem date and time,i must popup put a msg...can u help me
|
|
|
|
|
Hello Friends,
Please tell me which file is modified if I modify the project settings by pressing Alt+F7
Thanks in advance.
Neelesh K J Jain.
|
|
|
|
|
Neelesh K J Jain wrote:
Please tell me which file is modified if I modify the project settings by pressing Alt+F7
Project.DSP
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
|
Hello Friends,
I don't to display the Horizontal scroll bar in the ListView of my application. I am displaying some images and whenever I resize the window sometimes Horizontal scroll bar is displayed, So I tried using ShowScrollBar(SB_HORZ,FALSE) member function then the View is flickering whenever the scrollbar is being disabled. I got known the reason for the flickering as I am using CustomDraw() member function also.
Please help me in making the horizontal scroll bar to disappear without removing the customdraw member function.
thanks in advance.
Neelesh K J Jain.
|
|
|
|
|
I want to be able to call a function from a derived class in a base class function using pointer to this function. Example using reinterpret_cast follows, but it does not compile using mingw So maybe someone can explain me what I can do in this situation? Maybe I can use function objects, if yes, then how and what would serve the best? Thanks in advance!
#include <iostream>
// forward declaration
struct func_struct;
class data {};// base data class
class mydata : public data // new data class
{
public:
int i; // one class member
};
class base // main functionality
{
public:
virtual func_struct* get_func()=0;
void dothings(data* pData);
};
typedef void (base::*func)(data *);
struct func_struct
{
func pfunc;
};
void base::dothings(data* pData)
{
func_struct* fs=get_func();
// how to get the pointer???
(this->*fs.pfunc)(pData);
};
// specific functions
class child : public base
{
public:
virtual func_struct* get_func()
{
static func_struct maping;
// how to store pointer???
maping.pfunc=reinterpret_cast<func>(my_func);
return &maping;
}
void my_func(mydata* p)
{
p->i=1;
}
};
int main(int argc, char *argv[])
{
mydata d;
std::cout<<d.i<<std::endl; // should be 0
child c;
c.dothings(&d);
std::cout<<d.i<<std::endl; // should be 1
return 0;
}
Regards,
Alexander.
|
|
|
|
|
I want to disable selection in a listbox, with the scrollbar enabled.
Calling EnableWindow(false) disables the scrollbar too.
How can I solve this?
Thank you
|
|
|
|
|
What about creating a listbox derived class which would simulate the disable state through a simple boolean attriute? This class would draw the items as if they were disabled, manage the mouse and keyboard inputs accordingly, but let the base class manage the scroll bar.
Fold With Us!
"For every complex problem there is an answer that is clear, simple, and wrong" - H.L. Mencken
|
|
|
|
|
Am using the following code to addthe flow in the interface.
HANDLE flwHndl;
HANDLE ClFlowCtx=0;
TC_GEN_FLOW flg;
flg.SendingFlowspec.TokenRate = 64;
flg.SendingFlowspec.TokenBucketSize = 64;
flg.SendingFlowspec.PeakBandwidth = 10000;
flg.SendingFlowspec.Latency = 10;
flg.SendingFlowspec.DelayVariation = 10;
flg.SendingFlowspec.ServiceType = 1;
flg.SendingFlowspec.MaxSduSize = 1440;
flg.SendingFlowspec.MinimumPolicedSize = 64;
flg.ReceivingFlowspec.TokenRate = 64;
flg.ReceivingFlowspec.TokenBucketSize = 64;
flg.ReceivingFlowspec.PeakBandwidth = 10000;
flg.ReceivingFlowspec.Latency = 10;
flg.ReceivingFlowspec.DelayVariation = 10;
flg.ReceivingFlowspec.ServiceType = 1;
flg.ReceivingFlowspec.MaxSduSize = 1440;
flg.ReceivingFlowspec.MinimumPolicedSize = 64;
flg.TcObjectsLength = 0;
errcode = 0;
errcode = TcAddFlow(hndl ,ClFlowCtx ,0,&flg,&flwHndl);
What could be wrong in the parameters?Am getting ERROR_INVALID_PARAMETER as the 'errcode'.Thnx in advance.
redindian
|
|
|
|
|
In short How a program can determine that from where it is ordered to execute
"by a shortcut or another exe with their identity" so that we can decide to execute or not, or execute accordingly?
What I mean is that I want to run an application through a particular shortcut say on the desktop. if the anybody double clicks at the exe file in the directory it wont run. If some one makes his own shortcut to the same exe file then it wont run. i.e. it only run by the shortcut which i have made during installation.
Any idea/api.
Please Help...
|
|
|
|
|
the only thing i can think of is to include a parameter in the shortcut that the target .exe looks for, and if it's not there, don't execute it. But doing it this way would still allow a user to copy that shortcut and make their own. The only other thing I can think of is making a simple little exe with that parameter to be sent to the target .exe used in a call to ShellExecute().
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
Thanks
Second one is a good idea.
|
|
|
|
|
Hi,
I am writting a program using vc++.
My question is-
I have two dialog boxes D1 and D2.Dialog Box D1 contains one command button (Click) and dialog Box D2 contains One text box I would like to do, suppose we press Click button on dialog box D1 then D2 dialog box should be called and text box should be disable.
I would not like to write this code on OnInitDialog()of D2,because I know this codes work well. BOOL CD2:OnInitDialog() {
CDialog::OnInitDialog();
Cedit pEdit;
pEdit=(CEdit*)GetDlgItem(IDC_EDIT1);
pEdit->EnableWindow(false);
return TRUE;
}
Now, I wrote code
void CD1::OnOk()
{
// TODO: Add your control notification handler code here
CD2 d2;
// I would like to write code here for disable text box(IDC_EDIT1) on dialog box D2
d2.DoModal();
}
Please help me.
Any help appreciated.
Regards
rajesh
|
|
|
|
|
You can not do it the second way, you have to use the first. The edit control does not exist until the DoModal call is made so there is no window to disable.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|