|
Obsolutely. Your design doesn't change, you just use the EntLib in the DAL.
|
|
|
|
|
Hi Mark,
I just want to thank you in guiding me. I appreciate it. Once I know a bit more about the DAAB, then I want to start with the the other application blocks, lets say caching, exception and logging.
Take care!!
|
|
|
|
|
Dear All
How can I create Visual Studio Analyzer and incorporate wit Windos Management Instrument to filter widnows matadata
Sunil Sharan
Sunil
|
|
|
|
|
Hi Friends,
I am having an windows application created using C#. Its having a MDI form and many child forms. What i have to do is when i click a menu from the MDI window i get a form having a datagrid and many other calculations done and at the end of the page i have a print button. I want to print that entire page when i click the print button. I got a code from google but what it does is capture the screen and then prints. since it captures only what we can see in the screen i dont get the rest of the content which is visible only if i scroll down the window. i want the entire page to be printed.
Vipin
|
|
|
|
|
Look up PrintDocument. You will need to handle the events such as OnBeginPrint and OnPrintPage to format your data and print it to the printer.
|
|
|
|
|
can u please send me the code to print the entire form.
Vipin
|
|
|
|
|
Send me your specifications and I'll write the application for you.
You have to do some things on your own. Do a little research on the subjects I pointed out and if you have specific questions about something you don't understand or isn't working then ask, but don't ask to have someone do your work for you.
|
|
|
|
|
Mark Nischalke wrote: Send me your specifications and I'll write the application for you.
Now thats cool. I'll come back to ya next week when I have really lots of stuff to do...
|
|
|
|
|
...and the week after that I'll send you my bill.
|
|
|
|
|
|
You just cut off my revenue stream for the month. I was going to do the work for him
|
|
|
|
|
Hey!! No hard feelings partner.;)
|
|
|
|
|
Hello,
I'm not sure if this is the correct forum, but I will try my luck. So my problem is that when I want to build my PPC application I get the following error: "Invalid resx file".
After using Google for a while I found a solution which is using a tool called "regenresx". Unfortunately the link to the Microsoft download site doesn't work anymore.
So if somebody has this tool and could be so nice to send it to me (mail: Basti@shared-files.de), I would be very happy.
Thanks a lot
Regards Sebastian
|
|
|
|
|
I am not sure what is wrong with your resx file.
But MS supports generating resx files and there is a tool that comes along with the SDK.
If you have SDK installed it should be straight forward:
Check in your Program Files folder : Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Tutorials\resourcesandlocalization\resxgen
|
|
|
|
|
Hi,
thanks for your fast answer. I converted a PPC project from VS 2003 to VS2005. As I read within different forums, the style of the resx file changed. I get the following error:
Invalid Resx file. Invalid Resx input. Valid resheader-Tags for reader and write type names could not be found.
To convert the old resx files there should be a tool called regenresx, but this is not available anymore.
Regards
Sebastian
P.S.: Couldn't find the proposed resxgen tool, maybe it is not included within .NET 2.0?
|
|
|
|
|
Hi,
so I will reply to myself because I found a solution that works for me:
1) Remove only the resx-file within the project explorer of VS
2) Then double-click to open designer
3) Change a value (for example position of a control)
4) save...
...and voilá, VS creates a new valid resx file.
So hope this helps somebody else...
Regards
Sebastian
|
|
|
|
|
Hai,
How can i retreive the network username and password of the system in c# 2005
Phanindra...
|
|
|
|
|
To get your network username, use:
WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
Console.WriteLine(wp.Identity.Name);
To retrieve password is not easy. You can only
check whether your given password right or not.
See this : http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp
|
|
|
|
|
I have a cpp code and its header file as below.And I can export the functions DLLfun1,DLLfun2 and Add. But the problem is that although I can export DLLArg variable ( I check it with dumpbin.exe) , I can not use it from DLLClient witten in c#. I will paste my c# code also below.
Secondly, I want to ask that can I export and array such as byte [] or int [] as a variable like DLLArg.
I need help urgently.
Here DllCode.h --->
#ifdef DLLDIR_EX
#define DLLDIR __declspec(dllexport) // export DLL information
#else
#define DLLDIR __declspec(dllimport) // import DLL information
#endif
// The extern "C" declaration allows mixed languages compactability,
// it prevents the C++ compiler from using decorated (modified)
// names for the functions
extern "C" {
void DLLDIR DLLfun1(char*);
int DLLDIR DLLfun2(int);
int DLLDIR Add(int, int); // Class function Add
};
extern int DLLDIR DLLArg;
class __declspec(dllexport) DLLclass
{
public:
DLLclass(); // Class Constructor
~DLLclass(); // Class destructor
int Sub(int, int); // Class function Subtract
int Arg; // Warning: you should not
// import class variables
// since the DLL object can be dynamically unloaded.
};
Here DLLClient.cs --->
using System;
using System.Runtime.InteropServices;
using System.IO;
namespace DllClient
{
///
/// Summary description for Class1.
///
///
class Class1
{
[DllImport("main.dll")]
public extern static int parseFile(int a);
[DllImport("main.dll",EntryPoint="?deneme@@3HA")]
public extern static int deneme;
static void Main(string[] args)
{
int j= parseFile(5);
Console.WriteLine("Press any key to continue..."+deneme );
Console.ReadLine();
}
}
}
|
|
|
|
|
Couldn't you simply add a GetDllArg function that returns the value of that variable? That way, you can pinvoke it the same way as you do for the other functions.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi all,
I have a COM program written in VC++ (unmanaged). I got the managed code written in C#. My issue is I need to call the COM dll functions from my C# program.
Does any one have an idea how to do it? If so, please reply me with me some sample code.
Thanks
Sony
Sony AP
Panoor
Kerala
India
|
|
|
|
|
sony alex wrote: If so, please reply me with me some sample code.
Microsoft hides that sort of information at http://msdn.microsoft.com
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Nice one
|
|
|
|
|
hi
i was posted how to merge 2 exe and make 1 exe but anybody can not reply me correctly . in microsoft forum post to me that i can combine them in 1 exe that when end user run 1 exe, both exe runs at the same time ..
|
|
|
|
|
You posted the same question 3 hours ago - its still on this page of the forum.
Keep it in 1 thread!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|