|
I am having a difficult time convincing DevStudio 97 to accept and display Chinese character fonts during program time. When I run the exe the Chinese characters display fine, but only at runtime. I have been through all of the necessary steps with WinXP and the problem lies solely within Studio97 and C++. Does anybody have any ideas or suggestions specific to C++ 5.0 or Studio 97 that I am missing?
I have:
1) Installed/enabled East Asian fonts (XP)
2) Enabled various keyboard layouts applicable to the desired font (XP)
3) Installed appwzchs.dll
4) Set C++ resource files to default to ChinesePRC
5) Defined _Unicode
6) Entered WinMainCRTStartup as entry point in project settings
I am using PinYin IME.
I may be forgetting something here, if so I apologize. Any help, suggestions, critiques, ideas, etc. will be GREATLY APPRECIATED!!
|
|
|
|
|
You are in the wrong forum. This is the C++/CLI forum (the C++.NET forum). Perhaps you should be asking in the Visual C++ forum.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
|
I want to be able to get buddy lists from MSN Messenger. I wrote a little bit of code in C# that does that but I need to rewrite this in C++. I made a new new MFC dll project ( its supposed to be that way ) and added a reference to MessengerAPI. I cant seem to access the API in the same was as the C# code.
I am completely new to C++ so any help will be appreciated.
public ArrayList GetBuddyList()
{
MessengerAPI.Messenger msgr = new Messenger();
IMessengerContacts contacts;
ArrayList retlist = new ArrayList();
int i, j;
i = 1;
j = 1;
msgr.AutoSignin();
groups = msgr.MyGroups;
foreach (IMessengerGroup group in groups)
{
contacts = group.Contacts;
foreach (IMessengerContact contact in contacts)
{
if ( contact.Status == 2 )
{
ContactItem item = new ContactItem( contact.SigninName,
contact.FriendlyName );
retlist.Add( item );
}
}
}
msgr.Signout();
}
|
|
|
|
|
Hello,
i've inserted a .NET control in a MFC Dialog, i'd like to append functions to the events of the component but when i try to do (for example):
<br />
component1->OnItemMove += new OnItemMoveEvent(this, myFunction)<br />
the compiler gives my a C3363 error, saying that i cannot create a delegate for OnItemMoveEvent from a member of a unmanaged class (the dialog class where myFunction is defined) or a non member function.
Is there a "trick" to use .NET events from my MFC application or i cant do that in any way?
Thank you,
Gianmaria
|
|
|
|
|
i've found this article
http://www.developer.com/net/cplus/article.php/3391571
|
|
|
|
|
Hi all,
I'm storing windows positions in the registry - which I can do with no problems. What I'm asking is if there is a way to store two forms of the same type. I obviously can't use the form name as they will be the same. Does the form class provide any attribute that will differentiate between two forms.
for example - I opened two logForms in my application. When I store the positions of the logForms is there any way to set the name element of the reg entry so that I know it's a logForm but I also know that there are two of them.
Hope this makes sense.
|
|
|
|
|
Is your main app a MDI? if so then you should think about either using a different class for each logForm or keep track of the enumerated child form by using:
Form* mdiChild[] = this->get_MdiChildren();
for (int x =0; x < this->MdiChildren->Length;x++){
store the form using x
}
there maybe a better way other, but this is what I can only think of.
|
|
|
|
|
I have posted a problem in www.codeguru.com, but no respond so far My friend told me www.codeproject.com are more active these days... try my luck here.
The problem is drawing a simple MFC circle, will post a different display if you view it locally vs one view it through remote desktop. I'm suspecting this is a remote desktop problem or MFC problem.... can someone confirm or let me know if I miss anything? (it's okay when view through VNC Viewer)
I can't find how to attach document here, so you could click to codeguru to view the description of the problem in more detail
http://www.codeguru.com/forum/showthread.php?t=350088[^]
To be etically correct, do respond using codeproject if you viewed the issue through this forum. Thanks...
|
|
|
|
|
That's really weird. What are t he color depths on the two setups ? ( local and remote )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Not sure if I understand what color depths really means. Anyway, both my local and remote desktop is set to 32 bit colors. I tried both (run the application in either machine, and use the other as remote desktop), the problem persist.
|
|
|
|
|
color depth is bits per pixel. If both are 32 bit, that's really, really strange.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
interesting.....
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christian
How come your title is different. Are you responding to my post on "Remote Desktop Issue"? If yes, thanks... at least someone bother to test it out....especially a Microsoft MVP in C++.
It would be great if you could found any insight to this problem
Thanks!
|
|
|
|
|
I'll have a look, but what it means is that someone deleted their post.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
Im trying to find out how to convert a SYSTEMTIME to BSTR. Cant find out how to do that.
Hopefully some of you could help me out.
Best regards
Thomas
|
|
|
|
|
banski wrote:
Cant find out how to do that.
That is because there is no standard way of doing this because there are many different date/time formats. A good choice is to output the string in the format that is default for the user's locale.
John
|
|
|
|
|
Thanks,
But how can I do that in the smartest way. If you have time to show me an example to point me in the right direction would be appreciated.
Best regards
banski
|
|
|
|
|
|
Hi,
Yes Im using MFC.
Thomas
|
|
|
|
|
BSTR SYSTIMEToBSTR(SYSTEMTIME st)
{
CTime time(st);
CString str = time.Format("%c");
return str.AllocSysString();
}
John
|
|
|
|
|
Thanks,
This helped me out with my problem.
I missed the str.AllocSysString();
Best regards
Thomas
|
|
|
|
|
Can anybody tell me how to create tables. I am putting a sample using adox but i got verious error. And by using sql querry, nothing happens. Please Help
ADOX::CatalogClass *cat = new ADOX::CatalogClass();
String *strDataName = String::Concat(Application::StartupPath, "\\Data\\Blank.mdb");
String *strCreate(S"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=");
strCreate = String::Concat(strCreate, strDatabaseName, "; Jet OLEDB:Engine Type=5");
cat->Create(strCreate);
ADOX::Table *tbl;
tbl->Name = "CD";
tbl->Columns->Append( S"ID", ADOX::adInteger);
tbl->Columns->Append( S"Name", ADOX::adVarWChar);
tbl>Columns("ID").Attributes = ADOX::adKeyPrimary;
cat->Tables->Append (tbl);
|
|
|
|
|
plzz help.
how a can i write a program to copy function (as a whole) from one c++ file to another c++ file ,(appending to its end)
the inputs of the programe shoid be source file name,function name and destination file name.
|
|
|
|
|
You want to copy a function, at runtime ? As in, you want to add functionality to a compiled class ? Can't be done.
Or are you asking again a question that has been adequately answered before ?
Christian Graus - Microsoft MVP - C++
|
|
|
|