|
|
i have a form on which i have drawn some text using drawString(...) method. now i want to zoon that text. how can i do that??????
|
|
|
|
|
Zooming? Wouldn't it be better if you specified a different font size when you draw it?
---
b { font-weight: normal; }
|
|
|
|
|
Hello everybody.
I want to transfer my software to another computer which doesn't install the visual studio.net. I tried to copy the .exe file to the target machine, obviously it doesn't work. Is there any installer or setup package to achieve this in C#???
Could anybody help me with this please??
Thanks in advance
Asura
|
|
|
|
|
Your customers need to have the .NET Runtime 1.1 installed.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Is the runtime 1.1 in the installation disk of Visual .net???
Can I just copy the libraries I need to the target computer???
Thanks
Asura
|
|
|
|
|
This is what your clients need.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
i have written an asynchronous server. when one client connects to the server there is no problem. the problem appears when more than one client tries to connect to the server on the same computer. the exception seems to be raised when i bind the server to a certain ip and then start listening to a spesific port:
obj_Socket.Bind(ListenEP);
obj_Socket.Listen(11000);
|
|
|
|
|
|
A port can be bound only once, you're probably trying to bind it more than once (every time a client connects?) .
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
hi,
i have a datagrid on a usercontrol which has two columns of DateTimePicker style. They are 'From Date' and 'To Date'.
when i enter data in the first row, then i also choose the date. So when i add data in the second row, the dateTimePicker in 'From Date ' Should show me the next day of the date that i entered in the 'To Date' of the previous column. This should happen for all the rows that i enter..
could ne1 plz tell me how to do this??
Any help is appreciated,
Thanks
|
|
|
|
|
Hi,
I'm having some problems with DLLImport'ing into an application.
I have a .dll which has no com interface and requires importing of each function I wish to use.
These DLLImport lines sit in a class name VeryWrap
It's a PDF toolkit, and I'm able to create a pdf fine without any content with:
[DllImport("verywrite.dll", EntryPoint="VeryCreate", ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]<br />
public static extern long pVeryCreate(char[] filename);
Then I run this with:
long id = veryWrap.VeryCreate("Test1.pdf");
I get a file names Test1.pdf, great! I know the technique works.
But what I need is to insert an image into this file.
The library provides a function that takes an image filename and returns the width and height of the image which I then use to create the correct pdf page size I need.
But the return value of the function is a long stating success or failure of the function call.
The width and height are by as paramaters by reference to the function. These values aren't being written to.
The filename as defined in the original C function prototypes are char *, so I thought I should do 'char[] filename'. It seems to work for the Create function.
Now Here's my declaration for the Get Function:
[DllImport("verywrite.dll",EntryPoint="VeryGetFunction",ExactSpelling=false,CallingConvention=CallingConvention.Cdecl)]<br />
public static extern long pVeryGetFunction_ByRef(long id,long func_code,ref long para1,ref long para2,char[] para3,char[] para4);
para1 and para2 are the parameters in which I use my width and height variables, and para3 is the filename.
My call to this function is:
ret = pVeryGetFunction_ByRef(id, func_code, ref width, ref height, filename.ToCharArray(), filename.ToCharArray());
The value of width and height do not change but they should be the width and height of the image (filename).
Does anyone have any idea if I'm missing something?
Thanks,
Steve
|
|
|
|
|
Hello. I have written a fully functional program and I was going to let my sister try it out and give me feedback, however when I send her the .exe file generated by Visual Studio .NET 2003, she gets an error: "An exception 'System.IO.FileNotFoundException' has occured in .exe. If I copy all of my references to the output directory and send her the directory, then she doesn't get this error. Is there any way at all to wrap the references into the .exe? I thought about using the DllImport that C# provides, but it seemed to only work on attributes, where I obvioudly need everything. How would I solve this problem?
Mike - I love to program!
|
|
|
|
|
You do need the referenced dlls to be present in the application directory. Why do you need to have a single exe? If the problem is sending multiple files, can't you just zip the output directory and send it?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
It is more pleasing to have everything inside one dll without any files that can be modified by users which will screw up the program. If I do not need the referenced dlls, how come when I put them in a single folder with the .exe it works, however when I dont it does not. Am I missing something?
Mike - I love to program!
|
|
|
|
|
Of course you need the referenced assemblies, why would you reference them if you didn't need them?
It's quite simple: Your application is requesting a Type and the framework has to find the definition of this Type somewhere.
The places .NET looks for is the application's directory and the GAC.
If the assembly holding the requested Type cannot be found you'll get a FileNotFound error.
DllImport is only used to access functions in legacy DLLs, not Types in .NET assemblies.
Regards,
mav
|
|
|
|
|
Thanks for the information mav. Does that mean that I won't be able to wrap the .dlls with my .exe?
I love to program!
|
|
|
|
|
Well, you _could_, but I don't really see the benefit.
You'd have to build the dlls your using, add them to your main program as embedded resources, extract them at runtime and then load them manually (for example using Assembly.LoadFrom()).
Really a waste of time IMHO.
mav
|
|
|
|
|
I see. I wouldn't even know how to begin doing that (I would try it though if you could provide a tutorial on how to do so), and ive accepted the fact that I'll have to keep the .dlls out.
Mike - I love to program!
|
|
|
|
|
allenmpcx wrote:
It is more pleasing to have everything inside one dll without any files that can be modified by users which will screw up the program.
No way users will modify your dlls. It's (almost )the same format as .exe, so having one or more files is not an issue (if they fell like messing with your dlls its the same with exe). Aren't you talking about additional files like pictures etc? You can embed them into exe or dlls (read on about resources[^]). And if somebody delete/move some files from program's folder - that is very bad idea, only idiot would do that. 99% of application stop working when you delete them some dll files! And 99% of applications are not single .exe, I think you shouldn't worry about this.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Have a look into the ILMerge utility provided by Microsoft
I havent used it personally but I am under the impression that it will merge multiple dll's exe's into a single file.
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|
|
I actually already tried it, but I cant seem to get it to work. I looked for a tutorial, but all it had was the commands for ILMerge. Thanks for the suggestion though.
Mike - I love to program!
|
|
|
|
|
Your way of having split up the application into modular pieces for maintainability is welcome. Since your only problem is shipping the same to your sister or somebody to test it out, you can do one thing:
(*) Zip the entire folder and send it out. They need to unpack the folder and run the EXE.
(*) Chances are that they just doubleclick the EXE alone in WinZip window itself. To workaround this, perhaps you can package all the files into a single setup.
NSIS Installer helps you build setup in a very easy way. You can give it a try.
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
Try ILMerge. Not sure if its a standard program, but it'll do exactly what you want.
--
Joel Lucsy
|
|
|
|
|
I have an INI file that looks like this:
[section 1]
line0;argu1;argu2;argu3..etc
line0;argu1;argu2;argu3..etc
[section2]
Can anybody show me how can I read the section1,line 1 and extract argu3.
Thank you in advance
|
|
|
|