i have to insert sentences and images in word document in such a way that first page will contain only an image after that every page contains some sentences and one relevant image.That problem is that after inserting the sentence and image in the page i have to skip the rest of the space in that page and move to next page to insert other pair of sentence and image.
I want to make an application to make call via modem and receive them. I also want to implement to caller identification facility.
I need your's link's or hints to create such type of application.
which libraries i have to use and what is the technique to handle them.
hi what just i want to know :
a connection string is already in the connection class and tested.
i am adding a combo box in a new form .....
how i can call or create a new instance to call the connection string before i write myConn.open
OK, now it's starting to make sense. The reason to have the conection string in a class, is for that class to be part of the data layer. It should therefore expose methods to get the data you need, which can then be called to set the datasource of the combo box.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
In my C# program I got a class which has more than 200 Public methods and 50 private methods. Will the object created for this class utilize all these methods size ? How can I find out how much space is utilized by my object.
Is it a good practice like having more number of methods in single class ? Will this make any performance issues ?
I really doesn't know where to start to explain because obviously your knowledge of how compilers/programs work lacks a lot of stuff
But anyhow: the size of an object has nearly nothing to do with the number of methods (methods reside in the compiled code only once). Only fields (i.e. private int i) add to the size of an object.
And that number of methods is seldom advisable. A class should exist for one single purpose and 200 methods for a single purpose? Maybe you should split the class up into several classes, but that depends 100% on what it's for.
no risk no funk ................... please vote ------>
Thanks, So a class which contain few number of methods and large number of methods will be having same space ?
Yes - if you neclect the size the larger code uses in the dll. 20 instances of a class with 100 methods and no fields use exactly the some amount of memory as 20 instances of a class with no method and no fields.
N a v a n e e t h wrote:
Yes it's a database access class. All the forms are referring this class. Do you know any applications that can count object utilized memory space ?
I can't give you a link but I'd look for a Memory Profiling Tool.
no risk no funk ................... please vote ------>
What i want to know is are there any APIs or classes in C# which will help me create add-ins to Microsoft Outlook...say for eg. a new button in Outlook which would search for a particular appoitment in my Calendar...and things like that!! Let me know if this makes sense or any more details are needed.
I am using dotnetFramework1.1 with C# coding for my project.
I need to display some Records.So i use DataList Control For that...But my Problem is that when I click a particular row ,i want to redirect to some other page showing the full description of that particular record.How is this possible????....Please hepl me to solve my proble....
thanks in advance
Currently, I'm working on COM Interoperability project. In that client application (in vb 6.0) need to launch my application developed in .net.
Now the problem is the assemblies referenced by my .net application is spread across 2-3 folders and not in the same folder where my .net executable is placed. Also, the client application is also not in the same path where my .net executable is. If I keep everything (i.e. .net executable and client application) in same location everything works fine but if I move my client application to location different than my .net executable path, client application fails to load.
I register the assembly into the registry withoug codebase. Also, I tried setting the private path in probing attribute in app.config file but it didn't work. I want to avoid making my .net component assembly as shared assembly.
Can any one pls help in how I can resolve the assembly reference issue?
Have a look at the AssemblyResolve event on the application domain AppDomain class. This event is called when finding an assembly location fails; you should be able to hook this and load the assembly from whatever location you like.
A quick google on that event gives a few examples.
Thanks you very much for your reply. I was looking for some direction to resolve my problem which you very well provided.
However, Let me elaborate more on my problem.
In my case, there are two different applications, one developed in vb 6.0 (which acts as COM client) and other in .net. Now I register my .net application with registry (using regasm tool but without using /codebase switch). Also, I don't put my .net component (which COM client will access) into GAC. So in this case when I try to access my .net component from VB application using COM, VB application fails to locate my .net component and its dependancy. Can you tell me what I should do in order to make my vb application know where my .net component is placed.
If I put my vb application and .net application together, everything works fine. But if I put them seperately, loading fails with the message that "Runtime error '429'. ActiveX Comoponent can't create object.". In my vb code, I'm using CreateObject to create my .net component object.
Private Sub Command1_Click()
Dim i As Object
Set i = CreateObject("TestApp.class1") (TestApp.class1 is my .net component)
I hope I have explained my problem properly. if you have questions on this pls revert back.