|
Hai friends
what is multithreading, and how to use in vc++, and how to tested it...
help me plz...
Best Regard's
Mathy's
|
|
|
|
|
This subject is way too broad be explained in message on a forum. I suggest you read through the articles available here on codeproject that talk about multithreading or to google for it. Or even better, to buy a good book on the subject. You can also have a look at this excellent article[^]
|
|
|
|
|
mathy wrote: what is multithreading
It is a really big topic, you're strongly encouraged to read a book about. For an introduction see [^], [^].
Multithreading is what you typically need, when, for instance, your program is performing I/O operations for a long time and you don't want the user interface hanging in the meanwhile.
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]
|
|
|
|
|
Yesterday you asked us to "explain" COM, ATL and MFC. Now you're ready for multithreading.
Will you PLEASE do everyone here a favour by buying a book? This forum is ONLY for asking specific queries.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hello Friends
What is Difference between
ShowWindow(hwndDlg,SW_HIDE) and EndDialog(hwndDlg,0)?
Which One we need to use?
Thanks & Regards
Yogesh
|
|
|
|
|
ShowWindow(hwndDlg,SW_HIDE) only hides the window (but the window still exists) and furthermore, it can be applied to any type of window (even a control for instance). EndDialog destroys a modal dialog, so the dialog doesn't exist anymore afterwards. And it can only be used for a modal dialog (it would be a bit similar as calling OnOk or OnCancel).
yogeshs wrote: Which One we need to use?
That really depends on what you want to do . If you need to use only one of the functions, why would both of them exist ? They are there for a purpose and both of them can be used depending on the purpose.
|
|
|
|
|
Usually documentation helps.
For instance MSDN on EndDialog [^]:
The EndDialog function destroys a modal dialog box, causing the system to end any processing for the dialog box.
MSDN on ShowWindow [^]:
The ShowWindow function sets the specified window's show state.
Hence, roughly speaking, the former destroys the window, the latter just hides it.
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]
|
|
|
|
|
|
c++ program to convert text into braille character
|
|
|
|
|
You just asked this same nonquestion a half an hour ago. #1 you didn't ask a question. #2 you're not likely to just be handed a program.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
Please understand that, no one can help you by giving the whole source code.
Its better to ask, either as
"Any one have idea, how to convert a plain text into braille character programmatically. Using c or c++, Any help will be appreciated."
Well please go through Libbraille, the following link [^].
It will surely help you.
Величие не Бога может быть недооценена.
modified on Friday, December 11, 2009 1:23 AM
|
|
|
|
|
Surely a simple array is most of what's needed (maps from characters to strings, say).
Steve
|
|
|
|
|
moinsheikh wrote: c++ program to convert text into braille character
That's a bold statement.
|
|
|
|
|
c++ program to convert text into braille character
|
|
|
|
|
Please go through the instructions about how to ask a question [^].
Величие не Бога может быть недооценена.
|
|
|
|
|
Besides the fact that this is a terribly worded question (was there a question at all in your post?) you don't even need to write a program to convert text to braille. Simply download a braille font and make the text use that font.
If you absolutely think it's necessary to write a program to do this, then look at the section "Unicode rendering table" in the wikipedia article on braille.
|
|
|
|
|
|
below is C++ code
jmethodID mid;j
class cls = env->FindClass( "test/MyTest");
mid = env->GetMethodID(cls, "append","(Ljava/lang/String;I)Ljava/lang/String;");
mid=env->GetMethodID(cls,"HelloWord","()Ljava/lang/String;");
below is display by javap
public test.MyTest(java.lang.String);
Signature: (Ljava/lang/String;)V
public java.lang.String HelloWord();
Signature: ()Ljava/lang/String;
public java.lang.String append(java.lang.String, int);
Signature: (Ljava/lang/String;I)Ljava/lang/String;
below is java code:
public String HelloWord()
{ System.out.println("JAVA-CLASS:MyTest method:HelloWord:" +helloword);
return helloword;}
public String append(String str, int i) { return str + i; }
notice: the class has been found successfully, and the construct function <init> 's id is not return 0
question:why the other methods’s id always return 0??
|
|
|
|
|
I have tried this and, without seeing all your code, have made a few educated guesses. In my tests I am able to get the mid for both methods and also to call those methods. Have you run this through the C debugger to verify that all other values are correct?
|
|
|
|
|
Hi,
I have a chart object which draws itself on a DC. I would like to be able to 'print' the chart to a PDF file using the excellent Haru HPDF library. Has anyone any suggestions on how I could do this?
I guess I could add a draw function to my class which takes a pdf page instead of a DC but is there an easier way?
Tony
|
|
|
|
|
I think Haru PDF lib has some examples codes with it. Did you checked that.
I liked HPDF lib very useful and simple.
Величие не Бога может быть недооценена.
|
|
|
|
|
Hi,
Thanks for the reply. I did look through the code examples but couldnt find anything which would give me a device context to draw on. Which example did you have in mind?
I thought I might be able to create a DC, draw on it, then copy the DC to a bitmap but HPDF doesnt appear to support bitmap format.
Maybe I could write a HPDF_DC class which provides the methods of the CDC class but transforms them into a HPDF_Page but that is a big job - some other time maybe.
Anyone have any easy solutions?
Thanks
Tony
|
|
|
|
|
Hi,
This is my first post on these fourms, so I'll probably screw up something!
Anyway, I'm trying to write a program which interfaces with a third party dll. All I have is the dll. The dll contains a typelib. To start with, I created a Win Console32 app and am compiling using the /CLR trigger. I added the dll as a reference and placed it in the same folder. I can use intelisense to see all of the classes and interfaces. Here is my code:
#include "stdafx.h"
#include "objbase.h"
using namespace xTInstrument;
int _tmain(int argc, _TCHAR* argv[])
{
xTInstrument::GisClass^ Gis = gcnew xTInstrument::GisClass();
return 0;
}
I know for a fact the functions are declared as "Friend" in the orginal dll. The dll I am using is the Interop created by Visual Studio. Can anybody help me?
Cheers,
Shivels
|
|
|
|
|
|
with the statement
#import "XYZ.dll"
you get the tlb imported.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|