|
Check out the SetScrollPos API or the CProgressCtrl::SetPos method.
«_Superman_»
|
|
|
|
|
|
I am a new student of computer science for few days i am happening to think of making a ebook device, so that i need to program a pdf reader in c++ for that device, i do not have any knowledge how i can i do it so if anyone of u have any idea, tips, comment,known handbook list or any kind of help about it would be greatfully appreciated..PLZ help me!!!!
Every man is unique
|
|
|
|
|
Wow, for being a new student on computer science that seems to be a BIG project, however, these things can surely help you:
-your best friend, Google[^]
-Wikipedia[^]
-studying available source code, open-source PDF readers/writers like this one[^].
p.s: I supose you know there already are PDF readers for ebooks and you are not trying to reinvent the wheel but to learn about the wheel. Good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi Horizzzon,
How's it been?
If you are completely new, I rather think this is a very ambitious project for you to do in C++. If you're out to proceed, have a look at Haru[^]
I somehow feel that it must be relatively easier for you to use something like iTextSharp[^] instead and write your app in .NET (vb?)
Good luck.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
My project is about monitoring four sensor measurement from USB port.
In each sensor give me the data for plot graph in the same client area.
Because it is high speed input data (less than millisecond),so I separate each sensor data that I get in four thread and each thread use same client area to plot the graph.
So,It possible in each thread will plot the graph on client area in the same time.
My question is that when this occur the program will crash or not?
if the answer is "crash".
What about when I separate view in four view by splitter but same mainframe?
if the answer still "crash".
Please advise me the solution for this issue.
|
|
|
|
|
There can be a "crash" when multiple threads access the same resource. In your case it is the device context of the view.
You must use a critical section to lock the drawing code so that a thread cannot draw to the DC till other threads have released it.
«_Superman_»
|
|
|
|
|
What about separate it to different process and different plot client area.
Is it still crash ?
|
|
|
|
|
Then it will not because now there is no client areas being shared by multiple threads.
«_Superman_»
|
|
|
|
|
Can you give me some technic for mix multiple process and show on different client area but all process run on same program.
|
|
|
|
|
i have color mismatch problem in printpreview
pDC->SetTextColor(RGB(127,127,127));
pDC->TextOut(100,100,"hello");
and i m using Fujitsu DX2400 printer
the color looks proper in view but different in print preview
if i use diff printer like HP it works great
this color mismatch also happens for some more color codes
RGB(127,127,127) is one of them
read lot abt ICM in documentation also use Palettes
but no use
need some help...............
|
|
|
|
|
Hi
My application (say App.exe) is supposed to be launched by another process called Laucher.exe since some environment variables are needed to be set for App.exe to run. I am using CreateProcess API in Launcher.exe to set the necessary environment variables.
I had written a sample earlier where in both by Launcher.exe and App.exe were non-unicode (built in VC 6.0). But, currently I have moved to VS 2008 which where in the application comes with unicode settings by default. I have converted both Launcher.exe and App.exe to Unicode, but I am having a problem to use CreateProcess in Launcher.exe to launch App.exe
Since my App.exe is in unicode I think we have to set the lpEnvironment (in CreateProcess to CREATE_UNICODE_ENVIRONMENT flag) But just setting this and using the API the same way fails to launch my App.exe.
I could not find sufficient links on the internet which explain how to use this flag and launch the application in a unicode environment
Can somebody help me out if you have used this in advance?
Thanx
Vipin
|
|
|
|
|
After reading your question, I'm guessing your real problem is that CreateProcess API is failing in UNICODE builds. And that in the earlier NON_UNICODE builds it was successful.
If so, your title is very misleading.
Actually there is a difference in how you would call CreateProcess in UNICODE and NON-UNICODE builds.
In UNICODE builds, the lpCommandLine parameter of CreateProcess cannot be a constant because it will be modified internally. So you need to pass in a non-constant buffer here.
This is documented in MSDN, but you would need to read it properly, which most of us do not do.
«_Superman_»
|
|
|
|
|
Hi,
I am a retired social worker who creates eLearning materials that are given away to help people improve their health and to teach social work students. I need to create an unmanaged DLL that can be used to add drawing within an eLearning app which is capable of loading unmanaged DLL's and calling their functions, if these are specified.
On CodeProject, there is an excellent drawing DLL http://www.codeproject.com/KB/dialog/Basic_Drawing_Plug_in.aspx[^][^]but it is in C# which I suspect is managed code and not able to be loaded or functions called in the eLearning app.
As a novice in coding (have been trying to learn using MS's Express editions for VC++ and C#, which is a very steep learning curve for me), I am lost tyring to figure out a way to convert the C# to VC++, figure out the function calls so they can be scripted into the eLearning app, etc. With very limited understanding and skills, I keep getting error messages for whatever I try.
Any suggestions, leads, help in converting to unmanaged code plus specifying the function calls would be greatly appreciated. (Wrote to the DLL's author but have not heard back).
Thanks.
Kind Regards,
writer
|
|
|
|
|
No easy way I guess, unless somebody can do it for you. (somebody != 'I' )
Or you can get it done for a small fee by some freelancer.
Or you can wrap the managed code in a COM Callable Wrapper (CCW) and use it in unmanaged code.
But there is a steep (if not steeper) learning curve there as well.
«_Superman_»
|
|
|
|
|
Hi Superman,
Thanks for your reply.
It appears there is no easy solution.
However, I plan to try to learn more about unmanaged DLL's since these can be used by the eLearning authoring software that I use. Even if I can't create a drawing DLL in unmanaged code, I may learn enough to create something useful.
Again, thanks for your input.
Kind Regards,
writer
|
|
|
|
|
Post user defined Message and how to receive it
|
|
|
|
|
|
Hi ,
I want to compare 2 CStringArray... Please suggest best way to compare this arrays. Can it be easy to do using STL. I would like to have easiest way (using CStrinArray / STL )to do this..
Thanks:-
Mike
|
|
|
|
|
mikert_2008 wrote: Please suggest best way to compare this arrays.
Please explain what you mean by compare... You have two arrays of strings, what should compared exactly ? The number of strings in the arrays, each string to its corresponding in the other array, ... ?
|
|
|
|
|
It largely depends on what you mean by "compare". Are you wanting to compare each and element of two arrays? You can just do the comparison in a loop, can't you?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
How to merge two XML files in one XML file???
Thanks in Advance
|
|
|
|
|
If by merge you mean append (as in your subject), with two files each will have a root, so you'd have to decide which root was going to be the root of your new file. Then you could copy all children of the root from the file to be discarded so they become children of the root in the new file. That is. of course, if the format of the files makes this a sensible thing to do.
|
|
|
|
|
Hi all,
i m place my application icon in system tray.
i have created a Taskbar Menu,in this menu one item has property of check or uncheck.
i want to working according to its check or uncheck position.
how can i check wheater the item is checked or not.
so please tell me how can i check or uncheck the menu item.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
I believe this[^] should tell you all you need.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|