|
hai Ktm Techman,
Yes, Ur correct...I am sending the plain text only, But How to send the font styles also.How can I send Font styles ? Whether any API is there....or If you know any examples code pls send it to me.....
|
|
|
|
|
It depends upon the protocol you are using. If you are using your own protocol, either you can use HTML/RTF tags, and parse it upon receiving, and display accordingly, or u can make your own cool way, like,
Text: " ";Font:"Arial";Bold:1;Underline ;StrikeOut; ....
Or
U can even send the Font style object as binary data (if your protocol supports), cast it at the other end,
like Text:"Msg";Font object
|
|
|
|
|
How is ULONGLONG related to unsigned int64? I guess the length of this primitive type is 8 bytes?
|
|
|
|
|
In a Windows app, a ULONGLONG is an alias for a unsigned __int64.
It's 8 bytes long, yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
My project based DCOM RPC run slowly on Windows20003 Server.
But on Windows2000 or Windows XP there is no problem.
Someone would like to tell me why?
Thanks
GOOD LUCK
|
|
|
|
|
I have a DCOM based VC project.
I use RPC to query database(using SQL Server 2000).
But when the Server program run on Windows 2000 server,the client using the data querying well,that I mean query speed is not slow.
But when I run the service on Windows 2003 Server,the client's query speed is almost as slow as 1 of 8 of running in Windows 2000 Server.And if the Server is runing on Windows2003 Server,no matter where the client is,the query speed always very slow.But if change the Server to Windows2000 Server,no problem!
I don't know the the reason is the DCOM surport differences of Windows2003 Server betwen Windows2000 Server or other feature differencs between the two OS.
Perhaps such problem should be appear on COM messageboard,but if so,I am sorry,I had post it one day before but no one had read it.And there also was not a message posted after my message.And the problem occur yesterdy before when my database system was tested by the customer.So,I need every information and help about this.Thanks
Someone would tell me Why?
Thank you again.
GOOD LUCK
-- modified at 16:36 Sunday 12th August, 2007
|
|
|
|
|
the most important issue is to get CD-key of Windows OS, and other unique information.
thx.
|
|
|
|
|
If I were microsoft, I'd make it so that you can't get that. Seems like a spyware security loophole... letting software steal a legitimate CD Key?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Ok, so did the rabbit eventually get caught, or was he lost forever?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
My program designed to be use only on Windows with Thai setting.
If the user's windows had a american date/time format It will not work as expected
Is there anyway to get the information of current standard/format using
MFC or win32API function ?
I want to do something like this
<br />
if(CurrentDateTimeFormat() != thai){<br />
MessageBox("Please set region & format to thai before using","noticed",MB_OK);<br />
EndDialog(0);<br />
}<br />
thank in advance
|
|
|
|
|
Maybe GetThreadLocale() will get the info you need.
Also, GetLocaleInfo() can be used to get strings showing the proper
format for dates and times for the current locale.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You can use
GetUserDefaultLCID to detect users default Locale ID.
With GetLocaleInfo( lcid, LOCALE_ICALENDARTYPE,... )
you can check if you have a thai calendar for example.
This function gives you a detailed information about users formating settings.
|
|
|
|
|
xanagan wrote: If the user's windows had a american date/time format It will not work as expected
This is a bad design, IMO. The user should be allowed to change their date/time format to their liking, and your program should not care one way or the other.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have some data stored in MSSQL database. I have made the connectivity of my MFC exe through ODBC. Can somebody tell me how can i view the table on my front-end??
|
|
|
|
|
Is this a C++ question?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
This is a vc++ question. I have made an MFC application.
|
|
|
|
|
Ah!
It said MFC -- but your question was so vague, I didn't understand what you wanted to do.
You have an app -- with a main panel. You want to create a UI that will let you display records on that panel.
I'm no pro, but:
1. You have to create a UI on this panel to display your data.
2. You have to create SQL statements to get the right data out. Using these statements you have to create RecordSet's which contain the data extracted. You'll have to decide what database interface you want to use -- there's choices like ADO and OLEDB... and other's I assume.
I hope that's a start.
What specifically is your issue here?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
hey peter,
my data source is ODBC.
The points 1 and 2 that you have written....well tats fine. My problem here is i know i have to do that(point 1 and 2) but dont know how to !!!
I tried using MS DataGrid 6.0 but dont know how it works...and also i think it is meant for VB(only)...not sure though.....
see if you can help
|
|
|
|
|
Have read any of the database articles here?
http://www.codeproject.com/database/[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
yashveer wrote: Can somebody tell me how can i view the table on my front-end??
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
While skinning a dialog, i could not able to display 24-bit color bitmaps. Any suggestions please..
With Regards,
Sangeetha.
|
|
|
|
|
Sangeetha_J wrote: i could not able to display 24-bit color bitmaps
Why not? Errors? Exceptions? How are you rendering the bitmaps?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I designed the image in photoshop and saved it as a .bmp image.. How use it as a skin to a dialog.
With Regards,
Sangeetha.
|
|
|
|
|
An easy way is to draw the bitmap to the dialog in response to the WM_ERASEBKGND message.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
More explain will be helpful to get answer.
|
|
|
|