Answer Questions
mohaccc How to interpret void* in C#?
I am writing a porgram to call function in a dll created by C++. this is not a com dll,so I use pinvoke . In this function,there is a parameter was the type void* how can I translate it in C# If you know that the parameter type should be a pointer to an int, just change the parameter type to ref int instead of IntPtr. Inside an unsafe block you can get an int * like this int n = 50; int * p = ...Show All
redd Selecting a MAPI profile
I used this article to create a c# console application that sends emails through Outlook: http://support.microsoft.com/default.aspx scid=kb;en-us;310262 The problem is in picking the correct MAPI profile. A user may have a personal mailbox and a team mailbox (say the team has a support role). I need to chose the team mailbox, but my console application ignores my code and uses the personal (default) mailbox. Outlook.Application  ...Show All
Dushiant ArrayList Error
Im using the listboc control from the sampleFramework using directX and I want to create a remove function that will remove a string object from the listbox but I keep geting this error System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collection.ArrayListEnumeratorSimple.MoveNext() here is the code I did public void Remove( string s) { int i = -1; f ...Show All
Syed Aziz ur Rahman opening a new browser window
OS: Windows XP Pro Languages: C#, SQL Server, ASP.NET Program: Visual Studio .NET 2003 Hi, thanks for reviewing this post. I'm trying to create a link inside a datagrid where when clicked, it will open a new browser window with the url I want. The pages on Google are either not clear or not very helpful. Can someone please give me a pointer or two on how to use C# to open up a new broswer window with my preferred URL Thanks ...Show All
RebEl Code won't compile!!
If(number < 80) { // do stuff } dunno what's wrong ... Very good idea. Don't know how your going to enforce or encourge the Search before post mentality though .... you could start by making the search box a lot bigger at the top (aka google). A user's main point of entry into the database in theory should be the search .. not the browsing of the forums. Keen to see the VSS integrat ...Show All
Chattabaugh SQL data
I may have this idea completely wrong, but i wish to finda data on a sql DB by row....... _user_______pass_________last login date_________________ a name____******_________1/2/34_____________________ anoth name__******________1/2/34_____________________ i need to find info in a row, then check each column in the row for the info i need......i can't seem to figure out how to find what row# the info is in after u find it, and i can't find a way ...Show All
Michael Sync Check whether string contains uppercase letters
I want to create a password validation method so i want to check whether sring contains at least 1 uppercase letter... how do i do this public void ChangePassword(string UserID, string oldPassword, string newPassword) { if ( IsValidPassword(UserID, oldPassword) ) &nbs ...Show All
ColinLondon C# - Maximum Project Name Length
I just installed C# Express Version 8.0.50727.42 and I have difficulty debuging applications with a project name length of 11 characters - if they are less than that I don't experience this problem: Example: I created a new windows application project named: abcdefghijk and then immediately pressed F5. The following error is in the output window: The program '[688] abcdefghijk.vshost.exe: Managed' has exited with code -1073741819 (0xc0000005). ...Show All
Frails ? VS2005: Where did Class View->Add->Override go ?
In Visual Studio 2003, you can use Class View to navigate to a virtual member of a base class, then right-click that member and choose Add|Override. In Visual Studio 2005, this is not available. Where did it go Is there an alternative and equally convenient way of doing it # Thanks! Ok, thanks. (I have to say, though, that I preferred the old way - simply because it gave me a lot more context.) ...Show All
vostja knowing if a form is closed?
Ok, i have form1 and form2 and form3 Form1 ---> parent to form 2 form2---> parent to form3 and child to Form1 form 3 --->child to form2 now i want when form 3 is closed, then form 2 to close to, Anyone knowing that i was thinkg to the event FormClosed on form 3 but i dont kn ...Show All
RichardAU How to find IP Address
i am working with c# console application.i am using MInternetExplorer.Explorer class of SHocVw.dll.basically i am parsing html pages.i am using following events as per my requirement BeforeNavigate2() DocumentComplete() i am giving the website name for parsing. My problem is that when i give the name of website.i need IP address of that wesite before parsing.which event i need to capture in order to find the IP Address and which way i could fi ...Show All
HughFraserLarne memory address
hello, im trying to simulate the memory management so i want first to allocate x bytes and then working inside that space only.. how can i know the address of my object in the memory thanks i dont know what else to say so nevermind..thanks again for the help i created a class where im saving an identifier and the size (thats the block in the memory), alse im a ...Show All
Kenneth Jonsson How can I do to use Windows API?
I have used some Windows API commands but I get error. //==================================== D:\C#_Temp\SystemApp\Form1.cs(166): The type or namespace name 'HANDLE' could not be found (are you missing a using directive or an assembly reference ) //==================================== HANDLE hToken; TOKEN_PRIVILEGES tkp; // Get a token for this process. if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | ...Show All
FranklinOfFrankville How will I determine if the value of a variable is an integer?
or a decimal if (isInteger(var) == true) Meanwhile i can tell you if (xxx) is better than if (xxx == true) --------------------------- float x; (x%2 == 0) -> integer ---------------------------- better you explain what you want to check because there are many solutions to your problem how can I add this 1. consider numbers with comma (example 10,000) and decimals as numeric There are a s ...Show All
Morten Dahl Non file based configuration settings
Is there any way to use the .Net configuration framework to read/write configuration values from a database or other non-file based resource I though the original Configuration Application Block allowed you to specify providers. Maybe I was mistaken about this. If you are referring to the new client configuration APIs in .NET FX 2.0, then yes, you can persist application settings in other locations than in the app/user.config files by u ...Show All
