|
ok !!!
as you you make it more clear for me i understand that that it was better to use a client/server model!!!
but can you be more clear about the GUID and buddy !!!i don't know what it is
So you could just tell me where or how can i get more information obout that!!!!
|
|
|
|
|
give me the bases and i would build you the house
thanks
|
|
|
|
|
GUID = globally unique identifier - used to uniquely identify a connected user.
I suggest going to freshmeat.net and searching for IMs there. You can download the source-code and get an idea. IIRC Codeproject also has source code for IM. I thinks it's for Sonork.
HTH
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
thanks a lot but the buddy
|
|
|
|
|
you say you create a buddy never see this terms maybe because i'm french
|
|
|
|
|
|
They are all Indian fonts in XP.
|
|
|
|
|
Rama Krishna wrote:
They are all Indian fonts in XP
LOL
Do you know how I can filter them out? I am working on a custom font thingie [.NET] but this font problem is annoying me.
These 5 fonts dont render at all [they just show up in some random font and MeasureItem totally fails on them.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Nishant S wrote:
These 5 fonts dont render at all [they just show up in some random font and MeasureItem totally fails on them.
I get them rendered correctly in .NET in my balloon help. Even Nnamdi gets that correct in his Font combo.
|
|
|
|
|
Rama Krishna wrote:
I get them rendered correctly in .NET in my balloon help
Huh? They show up in the actualy indian font?
I am using Graphics.DrawString and it shows up as Arial but bigger, really bigger
Rama Krishna wrote:
Even Nnamdi gets that correct in his Font combo
Actually no. He is not chking for font height. Thus they dont expand, that's all. Even in his thing they show up as Arial.
p.s. How did you see that? You are on sonork too?
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
|
I thought that you were not able to measure the height.
Anyway looks like GDI+ doesnot have anymeans to do that. You can use PInvoke to find whether a font i strue type or not.
|
|
|
|
|
Rama Krishna wrote:
You can use PInvoke to find whether a font i strue type or not.
You mean use EnumFonts and the callback etc... ?
Damn! All that work just to figure out whether a font is true type!!!
This .NET thingie is sure incomplete!!!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
try chaning the charset or language or whatever
- Roman -
|
|
|
|
|
Nishant S wrote:
raavi
Did someone call?
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I don't know much about fonts, but it sounds to me like either they aren't installed correctly, or you're trying to use characters that don't exist for that font (i.e. english characters for indian fonts). Try using the Character Map utility to determine which characters are actually implemented, and then use those.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
Shog9 wrote:
don't know much about fonts, but it sounds to me like either they aren't installed correctly, or you're trying to use characters that don't exist for that font (i.e. english characters for indian fonts). Try using the Character Map utility to determine which characters are actually implemented, and then use those.
VOILA!!! That's it. You've hit it right in the middle of the eye ShoggyBoy!!
w00t!!
Shog, remember that quote I made about you being a genius. I forgot the URL and my bandwidth prevents me from using it. Can you please repeat that for me, so I can just say it aloud a few times here.
Man, it's all that salmon he eats!!!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
To get a string out of the value field from a simple Acccess data base I have seen the following:
strContent = (char *) (_bstr_t) db.m_pRecordset->Fields->GetItem ("Color")->Value;
What if the value stored in there is an integer?
Would it be:
strContent = (int*) (_bstr_t) db.m_pRecordset->Fields->GetItem ("Color")->Value;
I am not familiar with _bstr_t so am not sure. Another thing I saw was Value.lVal, Value.bstrVal, etc but dont recall where I saw it and what its use is specifically.
Thanks for helping,
ns
|
|
|
|
|
nss wrote:
strContent = (char *) (_bstr_t) db.m_pRecordset->Fields->GetItem ("Color")->Value;
I don't see why you need char *, _bstr_t should provide that for you automatically. A _bstr_t wraps a BSTR and a char *.
nss wrote:
strContent = (int*) (_bstr_t) db.m_pRecordset->Fields->GetItem ("Color")->Value;
Nope. Replace both casts with one to int. Of course your variable needs to be an int and not a char *. The reason it's a char * is that a char * is how strings are represented in C. A char is one character.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
The .vt value of the returned variant will tell you what type the returned field is. This will indicate how you treat the _variant_t data type.
The various data type can be found in the documentation of the VARIANT data type.
Here is a simple extract of how I tend to use the returned variant value from a recordset:
CString str = _T("");
_variant_t vtFld;
vtFld = pRecordset->Fields->GetItem(lpczFieldName)->Value;
switch(vtFld.vt)
{
case VT_BSTR:
str = vtFld.bstrVal;
break;
case VT_I4:
str = IntToStr(vtFld.iVal);
break;
case VT_DATE:
{
COleDateTime dt(vtFld);
szValue = dt.Format(_T("%Y-%m-%d %H:%M:%S"));
}
break;
case VT_EMPTY:
case VT_NULL:
break;
default:
szValue.Empty();
return FALSE;
}
Happy, Happy, Joy, Joy.
|
|
|
|
|
I have a CString array a[10], that I created with new. Now I want to copy this into another array
so do I create that with new as well, and do a loop like this?
CString *b = new CString [10];
for (int i =0, i < 10, i++)
{
b[i] = a[i];
}
Also for all the "new"s I make, I need to keep them around, so should I do the delete[] in th edestructor? What if I didnt. Is that bad?
Thanks,
ns
|
|
|
|
|
Yes, that's how you copy the array. Yes, you need to delete[] them all or you will leak memory. Overall, you'd be better to check out using std::vector for your array needs. I have a number of articles on CP regarding the STL, which is where vector lives.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
Vectors are great! I'm off to read about your views on STL! Thanks so much for the responses!
ns
|
|
|
|
|
You could also use CStringArray . It cleans up after itself.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Christian already suggested STL vectors
One thing left: What's the difference between delete[] and delete.
C++ developer, even experienced ones, often tell that in C++ pointers and arrays are the same. However, this is wrong! C/C++ does syntactically not distinguish between pointers and arrays. Semantically pointers and arrays are quite different things! And this is the reason for two versions of operator delete:
CString a[] = new CString[ 10 ];
CString b[] = new CString[ 10 ];
delete a;
delete[] b;
Because arrays and pointers share the same syntax, both a and b in the above code could be interpreted as pointer or as array. However, as I wrote above, they are not sematically the same thing:
- The first delete statement (delete a ) interprets <coda>a as a pointer. It therfore destroys the object (calls the destructor) to which the pointer refers - this is a[0]. Then the buffer itself is freed. The destructors of a[1] to a[9] are not called. Because CString objects manage their own string buffer and free in the destructor, these buffers are never freed for a[1] to a[9] and cause memory leaks.
- The second delete statement (delete[] b ) interprets b as an array. It first calls the destructor for every single array element and then frees the buffer.
Technically the one and only difference is that if you use operatore delete[] the destructor of each array element is called, while operator delete calls only the destructor of the first element. Therfore for object types that do not have an user defined destructor, both are semantically equivalent:
TCHAR szBuffer = new [MAX_PATH];
...
delete szBuffer;
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|