-
- Code change are not taken into account in web app
by Compugab
- 1 Replies
- Last post
by Bhanu Prakash Nunna - MSFT
- I'm using Windows Vista RC1 and Visual Web Developer 2005 Express SP1 with Vista support files. The user that runs Visual Web is a local admin. The files are on a file share access using a mapped drive. It's work well with XP but not with Vista.
Went I make change to my code in Visual Web Developer 2005 Express, they are not taken into account, like if the change was not made.
For example, I
-
- C# Programming->Structure
by DEEPAK GARG
- 4 Replies
- Last post
by DEEPAK GARG
- Hi
Ques1 :-> Can be instantiate the object of a strcuture using default constructor after declaring the parameterised constructor in the structure if yes why
-
- Trouble Reusing VS2003 C# code on a different development machine
by Robert Werner
- 1 Replies
- Last post
by TaylorMichaelL
- I have a VS2003 C# app that I need to make a quick change to. So I reinstalled VS2003 onto my computer, which already has VS2005. Running the app, everything at first seemed to run fine but now it won't run at all. I'm getting an Out Of Memory Exception. I think one key to the problem is that I'm getting hundreds of messages like this during compilation: System.Drawing.Font' is defined in multiple
-
- How to screen text box data for baseX?
by SDBrad5678
- 2 Replies
- Last post
by SDBrad5678
- taking user input from a textbox I want to test the contents.
In some textboxes it is binary data, so only zeros and ones. in another its hexadecimal, so 0 thru F
is there some direct way to say
string txtdata = textbox1.text;
foreach (char c in txtdata)
{
if ( !c is Base16)
{ messagebox.show ( enter only Hex or base16 data);
break;}
// if a non base16 value is
-
- call functions from embedded win32 dll
by WalterAlex
- 4 Replies
- Last post
by Mattias Sjogren
- Hello,
I have a win32 dll added to my C# proyect as a embeded resource( for protection reasons).
My question is ( if it's possible ) how to load the dll and call dll's exported functions from C# code.
The dll was wrote in plain C++ ( no MFC, no ATL, just exported functions )
Thanks in advance
Walter
-
- Starting off
by David_Wright
- 7 Replies
- Last post
by David_Wright
- Does anyone know of a good source of information on C# for a newbie Like for starters, what is a namespace, class, etc. What is the difference between public and private When to use each I mean the basics of which to start creating with C#. I have tried reading through the help on Microsoft, but I am still as lost as ever!!!!!
-
- Auto generate code for sp parameters in c#?
by tunesmith
- 4 Replies
- Last post
by tunesmith
- Is there an easy way to generate the parameters code for calling stored procedures
Thanks, John
-
- Windows wanting to reinstall KB937061 over and over andover again...
by Flip597
- 3 Replies
- Last post
by Roy Ogborn - Orbonyx Corp.
- What is going on with the KB937061/Windows Updater Windows Vista (64bit) keeps telling (via icon on the bottom right, context menu ) it wants to install that update but I've already done it and restarted my machine half a dozen times thinking it'll work now. I'm tired of doing the updates! Either it's NOT taking, in which case why Or it IS working but Windows Update is refusing to figure that ou
-
- ConfigurationManager
by NamelessJuan
- 8 Replies
- Last post
by Kaleb
- i have a problem with ConfigurationManager try { SqlConnection SqlCon = new SqlConnection(ConfigurationManager.ConnectionStrings["PPADB"].ConnectionString); //string mstrConnStr = ConfigurationManager.AppSettings["PPADB"].ToString(); } catch (NullReferenceException e) { MessageBox.Show(e.Message.ToString()); } my code
-
- Finding condition failure when using the ||/OR operator
by GrantThomas
- 4 Replies
- Last post
by IsshouFuuraibou
- Hello,
Im not sure if there this is going to be possible but take this code for instance:
if (variable_one != null || variable_two != null )
{
//....
}
Would there happen to be a technique of determining which of the variables failed the condition
Thanks for any help in advance.
Grant
-
- How to know what is the current power mode of the system.
by IMT
- 1 Replies
- Last post
by ChunSheng Tang - MSFT
- Hello,
I'm searching for a way to know when the system is in stand-by, hibernate, or log off mode. I tried to use the - Microsoft.Win32. SystemEvents .PowerModeChanged event, but the event won't fire.
Is there any other way of knowing if the system is in any power saving mode
Thank you.
-
- Tree-traversal Idioms in C#
by Mystagogue
- 1 Replies
- Last post
by Chunsheng Tang - MSFT
- I have been very happy using the IEnumerable/Yield combination for most of my tree traversal needs:
//Assume this is in a class called "DocNode"
public IEnumerable < DocNode > PreOrderDepthSearch() {
yield return this ;
foreach ( DocNode aLocalRoot in Children) {
foreach ( DocNode aNode in aLocalRoot.PreOrderDepthSearch()) {
yield
-
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
by TomPearson
- 6 Replies
- Last post
by Anonymous280z
- Hi
I have an exception being thrown for which I cannot seem to trace the cause. The exception is caught in a try catch block in the Main Appliation loop and contains the information below.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageA(MSG& msg) at System.Wind
-
- How to open a MDIChild from a MDIChild?
by Sune Henriksen
- 3 Replies
- Last post
by Ray Wilfong
- Hey all.
So the question is how I get the second form to be a child of the MDIParent as well. I have the first one working just fine, but I don't know how to work the other one. I found someone inhere who said the if you use the MDIParent.ownedforms property, you can get to the other forms of the MDIParent I just cant figure out how to get it to work.
Code: This works fine from the MDIParent
-
- Cannot take the address or size of a variable of a managed type
by Vikas Salvi
- 1 Replies
- Last post
by Mattias Sjogren
- hi all, following is a structure that i hv define [StructLayout(LayoutKind.Sequential, Size = 16)] public struct MESSAGE_INFO { public UInt16 _MessageCode; public UInt16 _ChannelNo; [MarshalAs(UnmanagedType.ByValArray, SizeConst=6)] public UInt16[] _Parameter; } Now when i declare pointer to this structure, It throws the error "Cannot take the address or size of a variable of a managed type
-
- Process.waitforexit() not exiting
by Anthony Maimone
- 14 Replies
- Last post
by eradicator
- This question may seem a little odd but I am attempting to run VS2005 through a process and execute a specific command and I waitforexit(). I am redirecting my input and output successfully but every now and then I happen to receive a Window Error Reporting Window/Message. The problem is that I am remoting, so when this message/window occurs during the process execution, I will hang unless I log i
-
- Form [name] spontaneously changes back to button1 or whatever?
by c_edward_b
- 7 Replies
- Last post
by Figo Fei - MSFT
- Sometimes when I place a form, for example a button, on my interface and rename it (by typing new text like "try_estimate" into the [name] field in the Properties window), during later work the name will change back to whatever its default name was, for example "button1". If I have code behind it, the code breaks. On my latest project I've given up and stayed with the default n
-
- FREE C# e-book PDF file download.... SAVE a copy!!
by John Oliver &#40;UK&am
- 2 Replies
- Last post
by Sean
- Hi ALL,
See these links.>>
http://www.programmersheaven.com/2/CSharpBook get it directly here>>
http://www.programmersheaven.com/ebooks/csharp_ebook.pdf
Regards,
S_DS
-
- Do I need reflection?
by rlrcstr
- 3 Replies
- Last post
by rlrcstr
- I have a scenario where I want to read the name of a type from an xml file and then either instantiate an object of that type or (depending on the situation) pass the type of the type...
Pseudocode:
bool CreateOneOfThese(string typeName)
{
declare object of type typeName;
instantiate an object of type typeName;
//Or perhaps
convert object x to type of (typeName);
-
- Are streamWriter functions performed synchronously ?
by Sabrecat
- 11 Replies
- Last post
by Peter Ritchie
- Ive got a piece of code in a windows service that I have written that has forcedme to resort to somthing that I really dont like. Here is the code in question.
while (again) { try { aFileName = tempadvcommfolder + loanNumber + "-" + loanName + ".Htm"; tw = new StreamWriter(aFileName); tw.Write(emailHTML); tw.Flush(); tw.Close();
-
- How do I get the keys of a dictionary?
by RRRouter
- 4 Replies
- Last post
by OmegaMan
- I have a dictrionary called "dict". I want to extract all the heys of that dictionary and put them into a variable. I guess I'm supposed to use "dict.keys" but I guess I can't figure out what variable type to store the "dict.keys" because all I'm getting is errors. I'm pretty new to C#. Help is very welcome!
-
- Calling methods of a class without creating an instance of it
by Blackened.pt
- 7 Replies
- Last post
by Blackened.pt
- Hi, I'm sure this probably has been answered before, but somehow I couldn't find it, so really sorry about that. But how do you call methods of a class without having to create an instance of it I mean, in my project I have something like: public class FileOperations{ public void read_config_file(...) { (...) } } And I want to call the read_config_file(who do
-
- Memorystream issue with bitmap
by Rpgforme
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hi, I am creating a directx sprite object to scroll a background for a form I am using. Normally I would just use the TextureLoader.fromFile() method to load the file and display it within the sprite. I need to edit the image at runtime and then add the image to the textureloader (using a stream object). So I first I create a bitmap object and do my editing - then I create a new memorystream objec
-
- curious about why the "this" keyword is only allowed in some contexts
by James2000
- 7 Replies
- Last post
by Rudedog2
- Why is the "this" keyword allowed in constructors but not in field initializers I realized that field initializers occur before any constructor code does, but I'm curious as to why the restriction. It's not as if it would prevent the use of a not-fully-initialized object instance. For example...
Code Block
class Engine
{
public Animal (Mammal x)
{
// use Car even
-
- Windows Application To WebSite Application and vice versa?
by Mohamed Adly
- 11 Replies
- Last post
by Mohamed Adly
- Hi All, i'm new at ASP.Net and i want to know how to make Windows Application invoke a method or even send message to web application. simply it's a presentation player, where the control from the presenter on Windows Application, if the presenter click on next or back button i want the Web-Site to navigate to the next image. so the problem is to send command or even message to the Web Application