|
Personally, I'd probably approach it by exposing a web-service[^] interface on the server that the client could use.
I wouldn't use COM because I've heard too many painful things about configuring COM to work across multiple machines. But that's just my prejudices
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have created a dialog and the dialog font size is different with my friend (all the setting in a property page is totally the same). Have anyone face this problem before?
|
|
|
|
|
He might be using different Font (DPI) settings.
|
|
|
|
|
Thank for the reply.
I make mistake in here. I din mention that the font i use is all in capital latter. that why mine font is biggest than my friend..sorry..
|
|
|
|
|
Hello,
is it possible to create an object with the CRuntimeClass-pointer and call a specific constructor during the creation, similar to the function new?
Maybe I can combine the CRuntimeClass-pointer with the funktion new?
CRuntimeClass* pRTC
CObject* pOb = pRTC->CreateObject();
CObject* pTestObj = new CTesObj( 5 )
|
|
|
|
|
If CTesObj is derived from CObject, then "CObject* pTestObj = new CTesObj( 5 )" is what you want.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank you for your answer, but my problem is another one:
CTestObj ist derived from CObject.
So I can create the objekt with new, like
"CObject* pTestObj = new CTestObj( 5 )"
But I will create the object with the runtimeclass-pointer (CRuntimeClass* pRTC).
This pointer knows the type of the class and I can create the object with the
CreateObject-function.
CObject* pObj = pRTC->CreateObject();
The CreateObject-function calls the standard-constructor.
Can I call another constructor during creation with runtimeclass-pointer?
The next line did not compile but maybe you can modify it:
CObject* pMyObj = new pRTC( 5 );
At the time of creation, I only know the runtimeclass-pointer and the transfer
parameter (5).
In my program the transfer parameter is a big class. So I will save time during creation.
Do you have an idea?
|
|
|
|
|
Good morning ,
got a question to the following code piece which converts ansi text to UTF8.
void SynthesizerSvox::ANSI2UTF8( char* text, int size, char*& result )
{
const int SIZE = 10240;
if( result )
{
delete [] result;
}
result = new char[SIZE];
WCHAR w[SIZE]={0};
int erg=0;
erg=MultiByteToWideChar(CP_ACP, 0, text, -1, w, SIZE / sizeof(WCHAR));
erg=WideCharToMultiByte(CP_UTF8, 0, w, -1, result, SIZE, 0, 0);
}
I found the code somewhere on the net (thanks!) and it works nicely. Only I´d like to work with dynamic memory allocation (don´t like to limit it) and can´t seem to get it done. The number of bytes used per character vary in UTF8 character set.
Is there a solution to this?
Souldrift
|
|
|
|
|
Souldrift wrote: nd can´t seem to get it done.
Why?
Souldrift wrote: The number of bytes used per character vary in UTF8 character set.
Yes, but WideCharToMultiByte is able to tell you how many bytes are required (MSDN [^]):
cbMultiByte [in]
Size, in bytes, of the buffer indicated by lpMultiByteStr. If this parameter is set to 0, the function returns the required buffer size for lpMultiByteStr and makes no use of the output parameter itself.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hm, good point. Thanks for reminding me of my ability to read ... it worked .
Cheers
Souldrift
|
|
|
|
|
Hi,
I am using VC++ . I want to access remote machine and then peroform functions like
1- View the applications of remote machines by clicking on the start of local machine
2- Select any application such as MS word of the remote machine by using mouse
3- Close the application by using mouse.
I guess technically I have to access the remote machine explorer.exe at my local machine.
How this stuff can be acomoplished in VC++? any idea
I would appreciate the guidance.
|
|
|
|
|
Ahmad99 wrote: Hi,
I am using VC++ . I want to access remote machine and then peroform functions like
1- View the applications of remote machines by clicking on the start of local machine
2- Select any application such as MS word of the remote machine by using mouse
3- Close the application by using mouse.
I guess technically I have to access the remote machine explorer.exe at my local machine.
How this stuff can be acomoplished in VC++? any idea
The free edition of RealVNC[^] is open source. I was forced to hazard a guess of what you're trying to achieve, but I also think that you've not had a chance to read the guidelines[^] in your 7+ years here?
Also, a there is a comparison of remote desktop software[^] (you may see what is open source, and what might suit your needs)
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Madhu_Rani wrote: thanks
That's what I see here now, but what I received in the email notification was entirely different! You've changed it immediately after posting to appear innocent.
If you don't have the nerve to make a comment publicly, you might as well hide under that same hole where you were. You want to know what I think? I think that you are a complete idiot. You are clearly in no position to assess anybody's contributions here.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
YES- We wrote these lines and then we deleted that if you have not courtesy/moral values then at least we should show and there is no need of hiding. Basically we two persons are working over this project. The other person does not bear user account with this portal and was using mine.
and once again you proved from your language that where you morally stand. I am not intrested to know what are your contributions. Only cheap like you requires praise.
|
|
|
|
|
You post one thing, and then edit it later to look innocent (just change it to "thanks" - wow! ). And I'm cheap because why? Was there anything vulgar or abusive in my reply? I insist that you read the guidelines and that makes me morally low?
You said there was no 'content' in my reply, but besides asking OP to read the guidelines, I also provided inputs that should have helped. You have no comments about that, but you insist on judging me otherwise?
Ignorance must be bliss!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Not to prove myself innocent but during the process We realized that we should not behave like you. You are using word like idiot and still thinks that it is not vulgar. YES you rightly said ignorance is a blessing and you are reaping the fruits of it truely.
|
|
|
|
|
In my first post, I only asked to read the guidelines! You then wanted to prove your idiocy by behaving like a criminal. As you can see, we are not hiding behind anything, are not anonymous and are here for a purpose. Unfortunately, shameful people like you refuse to follow the guidelines and keep posting elementary stuff.
You will be ignored.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Strange!!! people like you are talking about shame... just analyze your language then you come to know who is shameless....
Idiot, Criminal, Shameful, Coward.
ALL of these words are used by you , not by me and I have no doubt that you deserve all these titles. I used the words idiot only when you used it for me as a response and still I am excusing you. Indeed you are a totaly technology nut having no content (innerself) and you should be proud over.
|
|
|
|
|
See it for yourself:
1. You don't comply with the guidelines
2. I ask you to read the guidelines (along with an answer - links to open source implementations of the stuff you asked for).
3. You send me a stupid reply and then modify it so that it won't be visible publicly (changed it to "thanks"). You are a tosser.
4. Now, you think I cannot call you an idiot? And you are not a shameful person? Actually, YOU ARE.
5. And you think that I am ignorant.
Actually, you are the ignorant one.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Ignore this tool. He won't accomplish any of his tasks, the best he can hope for is to download some source and be utterly baffled at it's complexity, he won't accomplish his tasks plain and simple.
Stop wasting your breath and these broken English comebacks. And be more direct. A fucking idiot is a fucking idiot.
|
|
|
|
|
EliottA wrote: A f***ing idiot is a f***ing idiot.
Well said
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks!
I must agree with you. I usually don't get into such arguments, but I really wish people stop behaving like children when they're left anonymous over the internet. But then I'll ignore such ones now.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
More often then not people aren't truly anonymous over the internet. Especially on places like CP. Whatever he will is trying to do, take solace in the fact he will fail.
|
|
|
|