|
Hi, I am print text with fixed width (using Courier New font). But characters per line is very little. This slim font with GDI+? Or other way.
note: Cshap + .Net 4.5
|
|
|
|
|
You can use a variable width font or just choose a smaller point size. However, it is not very clear exactly what your problem is.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Problem is:
I print data into table. And I need more characters per line of paper, because text which fill table is overflowing over line.
Text in table must be printed font with fixed width.
|
|
|
|
|
Then you need to make your characters smaller, or make the table space bigger.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thanks for your post. I am changed page orientation to landscape.
Smaller font I can not set.
I am expect, that is possible print narrower character. My mistake.
|
|
|
|
|
Dear All,
I am looking for the working samples or links of .NET Code Generator to generate C++ DLL where included Structure, unsigned char * so on.
So far, I didn't see any solutions in google search and I hope some one will advise me to get the best for me.
Thanks and best regards
|
|
|
|
|
MrKyaw wrote: .NET Code Generator to generate C++ DLL That looks like a bit of a contradiction. Perhaps you could explain exactly what you are trying to do, and why you are not just creating the DLL as a project.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Well, if I understand your question correctly (not sure I do), you haven't found any examples because the .NET Framework compilers can't generate a standard C library DLL.
They can generate a managed code assembly. But whether this fits your needs or not depends on exactly what you're really doing with this and why.
|
|
|
|
|
Dear Dave,
Thank you for your advice seem like close the solution I want to implement.
I am looking for the .NET code generator to generate the C++ DLL as that translates the source into usable .NET package.
I can manage to find only the working sample of Data Base Code Generator in .NET but not C++ DLL.
Best regards
|
|
|
|
|
That's because there isn't one.
.NET (managed code and CodeCom classes) cannot write a C++ library .DLL. You have to use the C/C++ compiler to do it. Unless, that is, you want to write you own compiler.
|
|
|
|
|
Hi,
How about C++ to C# Code Converter developed by tangile software solutions seem like i want.
But not same or ok for my C++ source or DLL especially for C++ structure pointers or most of keywords used in C++ to C# keywords.
Best regards
|
|
|
|
|
|
Hi,
Thank you your word and if u came across any source or something pls let me know.
Even, I had draft idea to implement this but don't know what will be the detailed requirements.
Nothing is impossbile under the sun shine except very tight dead line.
Best regards
|
|
|
|
|
Hi Members,
I have a requirement where i need to display a popup control through my window service. I know in Win 7 window service can not communicate to desktop.
So can i get some ideas over it.
Regards
|
|
|
|
|
I suppose one thing you can do is create seperate applications and send/receive windows messages between them.
Here's a quick google result[^]
If you've never done this it might take you a few hours to figure out how it is done. I suggest a small test project and build from there.
hope this helps. But again, try to talk to your boss about this ridiculous requirement.
|
|
|
|
|
repost from yesterday (in the same forum!)
|
|
|
|
|
Hi Members,
I have an applications installed on two machines (client & server) on a Network. Whenever any upgrade of the application is available on the Server machine, Server machine have to notify the client machine. This notification has to be made through the Taskbar Flyout or Tray Notification similar with notifications of java version upgrade or AVG AntiVirus Version Upgrade
I have tried to resolve this thing using Window service and this approach is working nicely on the XP or lower version of o/s. But on Window 7 it’s not working as we all know that from vista onwards Window services run on a different session
So can somebody please comes up with any idea so that I may able to resolve this problem
Regards
|
|
|
|
|
PankajKSood wrote: But on Window 7 it’s not working as we all know that from vista onwards Window services run on a different session
"We" also know that Google has links to how this is solved.
PankajKSood wrote: Whenever any upgrade of the application is available on the Server machine, Server machine have to notify the client machine.
..and what do you do with the client-apps whose machine is turned off? Usually, the client-app "asks" the server whether an update is available (as easy as checking if a new file is on your server) and proposes to download it.
|
|
|
|
|
I told you exactly how to do this yesterday.
Again, you DON'T do this from a Windows Service and you really don't need a service to check for a new version of an app. You can do that with a normal application that runs out of the registry's Run key which will run whenever a user logs in.
|
|
|
|
|
Hi
I have implemented the IWMHeaderInfo3 interface from the Windows Media Format SDK as follows:
[ComImport, Guid(IID.IWMHeaderInfo3), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IWMHeaderInfo3 : IWMHeaderInfo2
{
...
void GetAttributeIndices([In] ushort wStreamNum, [In, MarshalAs(UnmanagedType.LPWStr)] string pwszName, [In] ref ushort pwLangIndex, [Out, MarshalAs(UnmanagedType.LPArray)] ushort[] pwIndices, [Out, In] ref ushort pwCount );
...
}
My problem is that according to the MSDN documentation the pwLangIndex parameter needs to be passed a null value at times. However a ushort cannot be assigned a null value so when I try to reference the method in code with a null in that position it complains the closest matching method has invalid parameters.
The unmanaged method is expecting a pointer to a WORD for this parameter so could I use IntPtr instead of ushort and the MarshalAs command to treat it as a WORD *? If so how do I do this?
What is the correct way to get around this issue? All help greatly appreciated.
|
|
|
|
|
You can create a "nullable" ushort as follows:
ushort? pwLangIndex = null;
|
|
|
|
|
Unfortunately this doesn't work. You can't pass a ushort? variable to the parameter.
I tried changing the parameter type to a ushort? in the method declaration but at runtime this results in an exception (Cannot marshal 'parameter #3': Generic types cannot be marshaled.) being raised.
|
|
|
|
|
|
Hi Gerry
I tried changing the parameter type to an IntPtr without the ref and using IntPtr.Zero in the call but that results in a "Value does not fall within the expected range." exception at runtime.
If I keep the ref it complains that IntPtr.Zero is a static const so can't be used as a ref parameter. Using a variable of type IntPtr instead causes a memory access violation.
|
|
|
|
|
If you could provide a more complete sample then others could actually try out their suggestions first. As it stands, it's not that easy to reproduce your problem.
|
|
|
|