Hello Friends,
I have one vc++ 6.0 library which i want to access in C# project.
As it is object oriented library(class & structures), DllImport is NOT an option.
So what I did so far is :
1. Opened vc++ code with VS2010.
2. Made it CLR(/clr) enabled.
3. Project Compiled successfully.
4. Now I started creating CLR friendly wrapper for pure
c++...
User Profile
Collapse
-
Creating wrapper on c/c++ code to access it as assembly in c# code
-
BeerHouse like projects for practice for technologies like WPF, WCF
Hello Everybody,
I have just learned few new technologies like WPF & WCF but i am not feeling that confident in working with these technologies as I dont know what end result application in such technologies look like.
Could you please help me in finding out projects like BeerHouse project where with reading about technology, I can also practice the best practices.
looking for projects related to these... -
Getting garbled data into thread
Hello Everybody,
I have this following code with me:
...Code:public class Program { static int numThreads = 10; static ManualResetEvent resetEvent = new ManualResetEvent(false); static int toProcess = numThreads; static void Main(string[] args) { // Start workers. for (int i = 0; i < numThreads; i++) { -
Please read about MEF framework provided by Microsoft. -
-
Thanks for the reply...
link was helpful.
But what about my other question, Will this static method work
fine in Web environment?
How many instances will get created when clients from different web browsers will put a request?
Thanks in Advance.
ZackLeave a comment:
-
Write log using static function
Hello everybody,
In my code, I wanted to write log exception to some file.
So I created a Utility class & wrote a static method in that to write log message to file.
...Code:public static void WriteLog(string message) { using (FileStream fs = new FileStream(@"c:\log.txt", FileMode.Append)) { using (StreamWriter streamWriter = new StreamWriter(fs)) -
-
Hmmmmm .. tyring same kind of solution.. "Join()" concept looks more appealing in my case... will try that out & let u know...
Thanks for ur help...Leave a comment:
-
How can I lock thread till execution is finished
Hello All,
I have a event called dataTree_AfterS elect in which I have some code which I want to execute as atomic operation like this:
What is happening now is, I am able to select another node of tree & in that case another execution of above function starts causing a garbled...Code:protected void dataTree_AfterSelect(event params) { code that should not be disturbed } -
See if it helps... U will have to search more about Process Class
Code:Process a = new Process(); ProcessStartInfo sInfo = new ProcessStartInfo(); sInfo.Arguments = "SwitchUser"; a.StartInfo = sInfo; try { a.Start(); }Leave a comment:
-
-
In Project Properties - > Debug -> Start options -> command line arguments... u can specify ur input parameters. Set Configuration as Release.Leave a comment:
-
-
then what is the significance of this line
does it mean nothing in C#, cause in java above statement mean a lot of things..Code:I i = new G();
thanks in advanceLeave a comment:
-
thanks Monomachus...
but even in this case.. I am not getting what i want i.e.
"I am from sub"
"I am from base"
I know I should have called base.PrintOne() from overridden method.
But I dont want to do that way. I want to achieve calling of base class method & sub class method from base class function only.
My code compiles .. doesn't it mean it is...Leave a comment:
-
Whats wrong with this code
Hi all,
...Code:namespace ConsoleApplication1 { class I { public void PrintIt() { PrintOne(); ((I)this).PrintOne(); } public virtual void PrintOne() { Console.WriteLine("I am from base.\n"); } } -
zacksoniar started a topic which is the WM_SYSCOMMAND that gets fired when clicked on the taskbar window ?in .NETwhich is the WM_SYSCOMMAND that gets fired when clicked on the taskbar window ?
Hello,
I need a wnd SYSCOMMAND that gets fired reliably when clicked on the window which is sitting on the taskbar or when that window enters in focus after pressing Alt+tab
I have already tried below commands but it dint help me.
some of the commands are fired but not reliably.
...Code:const int MYKEYID = 0; const int WM_MOUSEACTIVATE = 0x0021; const int WM_HOTKEY -
Regular Expression for Array Variable as ABCD[1]
Hi All,
In my application, I need to search a variable which I m searching using regular expression.
e.g. "Set Variable1 to 0" This is the string & I know that Set is followed by some variable.
So, my expression is "^Set [a-zA-Z0-9]* to 0$".
This way I m able to find all strings of form
'Set SOME_VARIABLE to 0'
Now, the problem is variable could... -
Thank You very much Vivek... Your answer really helped.
just that instead of writing HtmlEncode=fals e in GridView,
I assigned it at runtime when I define Columns using BoundField class.
& I am sorry... I totally forgot to tell u guys that I am definig Columns using BoundField.
Here is what it looks like:
bfield = new BoundField();
bfield.ItemStyl e.HorizontalAli gn =...Leave a comment:
No activity results to display
Show More
Leave a comment: