I have created a COM object by wrappiing a .NET assembly using tlbexp. This assembly is dependent on another assembly which, in turn, is dependent on two third party assemblies (I can't rebuild them and give them "strong names"). How can I deploy these dependent assemblies (DLLs)so that the COM object will work?
I would be happy to deploy everything in the same directory. The problem is that I don't know which directory use. The main DLL (DLL_1), and the only one whose classes I wish to expose, has been registered by REGASM and is accessible to unmanaged code. Not being a "second generation" MS programmer, I don't know much about the registry -- except that the methods exposed by DLL_1 are visible using regedit -- but not DLL_1's physical location. I have placed copies of the other DLLs in various places (e.g. a) the bin directory of DLL_1's project and b) the directory that contains the copy of DLL_1 that was "REGASMed") without success.
Any help making up for my generation2 deficiencies (Gen 2 > DOS and < .NET) would be greatly appreciated.
By the way, do you think it will take ten years for Generation 2 to die? (I wrote DOS code in early 2003 and Generation 2 started in 1993).
I'm trying to simply print some text, along with one or more illustrations. The illustrations print fine, and the text does as well, as long as the font is huge.
I've tested this bug using sizes 73, 60, 50, 30, 20, and 10, and all sizes smaller than 50 appear as random characters. I've used both times new roman and Arial font families with identical results. Does anyone know why it is doing this?
I'm using C# in a windows forms application. Any Ideas?
I wrote an article for the same. But i forgot the discusson group where i kept that. but still i have that source which will help you to print your page and content while keeping the font size in mind.
Thanks, but my main issue has to do with beintg able to specify a particular font family and size without it appearing as gibberish. I don't need to worry about line spacing or anything like that. The text I'm printing is essentialy captions for a picture. The text displays perfectly at sizes of 50 points or higher, but immediately turns to random characters at smaller sizes.
Maybe I am just over fussy, but I would like to exactly replicate the OS Font when ownerdrawing a control. I have looked at the examples on CodeProject and the Web and all of them seem to fail to correctly render.
To demonstrate this try,
Create a new windows form application, and set the form to Tahoma.
Add a standard label, Textbox or other control, and set it to be FlatStyle=System. Set it's .Text to be "Debug"
Then add a new user control, override the OnPaint and Drawstring("Debug"...);
You will notice that the D and e have a different spacing and also that the final point of the e raises on the Drawstring text. (Use the XP magnifier or download the taskbar magnifier from MS powertools to see it more easily).
I have so far tried:
StringFormat, SmoothingMode, InterpolationMode and TextRenderingHint and yet I have failed to have much effect.
I am in the need to develop a .net component that can communicate two different sql server databases. These two servers are physically different location. That .net application will be in server A and it update some data into Server B located in some other place.
Can any one help me to develop database connectivity in either VB.net or C#.NET?
The SqlConnection object will take a connection string that gives the name of the server. All you need to do is ensure that your .NET component can see both databases. There is nothing different involved from connecting normally.
In my development two servers are in different location that means first one is in New Delhi and second one in singapore, not even in private network like VPN.My problems is how to construct a connect string either for SQLServer provider or OleDB Provider
When you have more than one thread accessing the same object then problems can arise, mostly due to the scheduling performed by the OS.
One thread can start modifying the object and before it's done another thread gets permission to run and will work on inconsistent data.
In this respect, such an object would be not thread safe.
Because implementing a thread safe object can be quite tricky and can include some overhead, not many classes in the framework are really thread-safe.
For a not thread safe class, the developer has to take care that the same object cannot be used by two threads at the same time.
Last Visit: 31-Dec-99 18:00 Last Update: 11-Aug-22 1:54