|
I can think of 3 ways you could do this:
1) Enable remote debugging in Visual Studio and run all the tests on a computer with the hardware installed. So your laptop can run the tests and the hardware also.
2) Add a few conditional compile options around the calls you have into the hardware specific DLLs - this makes them not execute at all.
3) Stub out the hardware DLLs on your dev laptop by creating special versions of them that run without the hardware attached. So basically, they can return to you known data when called, and do nothing when no return data is required.
|
|
|
|
|
I think the most widely used point for these situation is what you have proposed as 3rd option. Simply Mock your hardware specific assemblies (I don't know how hard that is), this way on a laptop you can test only your code and in the mocks implement whatever functionality you need assuming that "the hardware" works ok. When running the tests on the actual device you can simply remove the mock assemblies and you can also run your tests.
|
|
|
|
|
Load the DLL dynamically depending on the Hardware (take a look at Assembly.LoadFrom).
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
How to reduce the size of a pdf using free libraries in C#.
|
|
|
|
|
You can archive it, using something like (PK)ZIP or LHA(rc). Alternatively, you could compress your entire drive.
You can't make it smaller without "packing it". If that were possible, we'd be wasting a lot of resources by not archiving everything.
If the file is too big, take a look at the embedded files; I'll bet there a huge image in there that can be rescaled.
|
|
|
|
|
I didn't got your solution!!1
let me be more specific...
1. I am creating a policy (Insurance) from a database. This pdf file is about the size of 5 MB and with only 2 images.
2.I can't convert it into zip, so i need the output in pdf only
thanks for your reply but seeking for a specific answer from your side!!!
|
|
|
|
|
This was the specific answer; if PDF's could be "smaller", wouldn't everyone save them in the "small" way?
How big is the image? And when you convert it to a bitmap?
How big is the PDF without images?
|
|
|
|
|
I am giving u the link to download a sample pdf similar to my policy pdf (i can't give you the pdf generated from my application)
here is the link http://pdfcast.org/pdf/insured-lloyds
-- modified 4-Dec-12 9:46am.
|
|
|
|
|
Both pictures are black & white? Can you post a link to the pictures?
What version of the PDF-format is being written?
|
|
|
|
|
the pdf which is generated by the application is not having more than 2-3 images and all images are compulsory black and white!!!
and the version is 10.0
sorry for late reply bro!!!
|
|
|
|
|
I have 2 solutions WFPath and ParToChildWF that are being called in different workflow nodes and different workflows.
The error is System.TypeLoadException: Could not load type 'WFPath.Class1' from assembly 'ParToChildWF, Version=1.0.4720.26649.
What am i doing wrong?
|
|
|
|
|
Peaches2010 wrote: I have 2 solutions WFPath and ParToChildWF that are being called in different workflow nodes and different workflows.
The error is System.TypeLoadException: Could not load type 'WFPath.Class1' from assembly 'ParToChildWF, Version=1.0.4720.26649.
What am i doing wrong?
You referenced the assembly of the project, and now that the solution is rebuilt, that specific assembly is gone. I'd suggest to add the project as a reference.
|
|
|
|
|
I added the references and ran the workflows I'm still getting the same results.
|
|
|
|
|
Some project is referencing an outdated (compiled) class.
|
|
|
|
|
how can use keventhandler
|
|
|
|
|
This is not a question that can be easily answered; please try and explain what problem you are trying to solve. If you just want to learn about delegates and events then see these tutorials[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
how can use keventhandler
|
|
|
|
|
KeyEventHandler[^]
Event Handler[^]
Hopefully these should help you.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
He members,
I have a window service and a separate UI application. I want to display a popup message (popup control is placed inside the UI application) after every 10 min or after meeting some xyz condition I want to display that popup message on user desktop. This whole functionality is working nicely in window XP but in Window 7 this message got displayed on the service desktop instead of the window desktop.
Window Desktop: Normal desktop of window 7
Service Desktop: a blank desktop containing a system popup with “Go Back“ button.
Can somebody please provide any suggestions on it.
Regards
|
|
|
|
|
Window services does not allow any user interaction
|
|
|
|
|
Do we have any alternate by which wo can achieve it ?
|
|
|
|
|
Don't use a service would be the alternative; does the "logic" in there have to run without user-supervision and/or before login? If no, convert it to a console-app. If yes, launch the UI-app using normal user-credentials, and have it communicate with the service (over TCP/IP e.g.)
|
|
|
|
|
Hi Eddy,
Some times our o/s also displays the notifyicon to upgrade java version. That thing is also performed though window service. Even i want to perform the similar task through my window service.
Can you please suggest.
Regards
|
|
|
|
|
PankajKSood wrote: Some times our o/s also displays the notifyicon to upgrade java version. That thing is also performed though window service. Even i want to perform the similar task through my window service.
I already did; and no, someone misusing the system doesn't make it a good idea to copy. Services run without user-supervision, and should not display anything. Whom are you going to display to on the logon-desktop?
Your app would run happily as a user-mode application on startup.
|
|
|
|
|
Eddy,
Yes its not a good idea to copy but still i am ordered to do so..
Regards
|
|
|
|