-
- For unmanaged code: Does Operating System translate specific OS codes into machine code?
by john wen
- 20 Replies
- Last post
by john wen
- Hello I want to ask something about unmanaged code such as COM: COM codes is equal to specific OS code Then OS translates the COM code into machine code Or is COM codes simply machine code Please respectively answer 3 questions in detail. JohnWen
-
- how to convert from string to system.guid?
by shy216
- 5 Replies
- Last post
by Peter Ritchie
- I am trying to insert data into table. can someone help me with couple errors im getting
//this is what i have=================
Data_Access.dsBudgetTableAdapters. tbl_purchaseReqTableAdapter pr =
new Data_Access.dsBudgetTableAdapters. tbl_purchaseReqTableAdapter ();
pr.InsertPayee( Convert .ToInt32(txtPRNum.Text), Convert .ToString(drpStaffID.SelectedIndex), Convert .ToDat
-
- local scoped object to static shared resource collection. . .
by NozFx
- 7 Replies
- Last post
by Matthew Watson
- Hi all,
I'm getting paranoid and having a mental block moment. I have a locally scoped object that will get added to an ArrayList that is a static member of the class. This ArrayList will be accessed by multiple threads so I need to ensure that I get exclusive access from each of these threads to read and write from it.
My paranoia is this; is the local scoped object ok I mean I cre
-
- Without displaying the button and labels.
by ardmore
- 6 Replies
- Last post
by boban.s
- Please see my code.
Thanks.
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Data;
public class RefOutTest : System.Windows.Forms. Form
{
private System.Windows.Forms. Button showOutputButton;
private System.Windows.Forms. Label outputLabel;
publ
-
- Convert object to system.datetime
by dirty-shirt
- 3 Replies
- Last post
by George Olson
- I've writing a web service and I want to compare the Date column of a particular list to a given DateTime argument. How can I convert this Date column which is returned as an object to a DateTime type
Here is a code snippet:
DateTime.Compare(lastUpdated, listItem["DateModified"]
Where listItem is an SPListItem.
Cheers,
Tim.
-
- Casting List.FindAll
by Robert.S
- 1 Replies
- Last post
by Peter Ritchie
- I use custom BLL objects, and use generic lists to hold them. Instead of typing List<Foo> everywhere I create a new class derived from List<Foo>, FooList. When I call FindAll on my delegate I get a result of List<Foo> but would like it casted to a FooList. The code compiles fine, but I get a runtime exception:
Code Snippet
Unable to cast object of type 'System.Coll
-
- How GC will work in this case????
by Saurabh Surana
- 5 Replies
- Last post
by Peter Ritchie
- I am creating a thread inside a method. I have a doubt that if i keep my thread object as local member of that method and create the thread then will that object be eligible for garbage collection To be more precise lets see the following code void SomeMethodCreatingThread() { System.Threading.Thread myThread = new Thread(new ThreadStart(startMyThread)); myThread .Start(); } private void star
-
- Problem at Library
by Omar Fawzi
- 14 Replies
- Last post
by Omar Fawzi
- Hi everyone.
i have a library that collect alot of controls, when i added the library to ToolBox no controls appear in some pcs, but in other it work correct.
i dont know if the problem related with sp.
i use vs 2003
-
- ( DAAB problem with SQL syntax )
by osama.jasser
- 2 Replies
- Last post
by osama.jasser
- Dear All
I want to use Microsoft data access application block for dynamic database layer
In my application which support SQL server , DB2 and oracle database .
But as you know each one of these DBMS has his own syntax for SQL parameter
Example :
Oracle >> select empno,ename from emp where empno=:empno
SQL server>> select empno,ename from emp where empno=@empn
-
- Utils Class inquiry
by AlexBB
- 4 Replies
- Last post
by AlexBB
- Utils Class appears to be undocumented. MSDN says that it is intended for use by the OS system only (VB compiler) and not supposed to be called directly from C# code. I came across exactly the opposite and when I tried to invoke it in Intellisense it appeared the class has a lot of useful method I badly need. It appears some of them are self-explainatory but others are a bit more obscure. Anyhow,
-
- Decipher this error message
by CheeseMan
- 10 Replies
- Last post
by AlexBB
- Hi!
I'd like some help to decipher an error message. I've been Googling all over the world with only two hits. The error message I get is:
Type constructor threw an exception.
What happens here is that I make a WebService call to a WebMethod and inside that method a new instance of a class is created. But! On the line:
SomeClass someClass = new SomeClass();
it casts thi
-
- curve fitting
by danych
- 3 Replies
- Last post
by Peter Ritchie
- hi all,
is there any curve fitting library or function in C#
thanks
-
- Runs on XP but not Vista
by BigBill
- 4 Replies
- Last post
by BigBill
- Hi,
My application runs fine on Windows XP (I've tested it on a number of computers). However, when I go to run it in Vista it locks up on the splash screen before anything starts loading.
Interestingly enough, only the release version locks up. The debug version runs just fine.
I've written the application in Visual C# 2005 Express using .NET 2.0.
Any help would be great.
-
- Mimicking Vista File copy
by Xancholy
- 3 Replies
- Last post
by Xancholy
- Vista has a nice new feature - when you copy a no of files to a target directory using dragdrop,
on drag it shows you...
1. the number of files being copied
2. a snapshot of file being copied
How can I mimic 1 & 2 using C# when I dragdrop files onto a form using VC#2005e
-
- How do you pass a structure into a generic method?
by FierceCodeMonkey
- 3 Replies
- Last post
by makeshiftwings
- Hey guys,
I need to pass a structure inside a generic method in C#
This is what I have, but it does not work.
Example of my generic method:
public bool MyFunction< T >(T structSubscription)
{
bool bRetVal = false ;
string szTempString = structSubscription.szHeading;
return bRetVal;
}
I call this method like so:
-
- Message to Shane - sjimmerson
by sjimmerson
- 6 Replies
- Last post
by HeeJae Chang
- I am running Visual Studio 2005 SP1 on Windows XP SP2. When editing XML code comments the IDE locks up/freezes on me when entering certain characters like < and >. It only appears to occur when the section I am editing contains a CDATA node, but it happens every time in this situation. When this occurs I have to kill the IDE and restart it and has proven to be very frustrating. If I take the
-
- Stack OverFlow Exception in .NET compact C# Application
by Junwen
- 5 Replies
- Last post
by wakawaka54
- My C# application has numerous windows form and I often need to call another windows form and closes the previous one.
However, because of this, stack overflow exception happens.
I have run the debugger in VS2005 and noticed that whatever form that the application loads has all its methods push into the call stack. For example,
namespace PHIMS { public partial class AddAllergy : Form
-
- Analog Clock algorithm?
by TheMaj0r
- 4 Replies
- Last post
by TheMaj0r
- Hello,
I have a lot of source code for how to create an anlog clock but i cant understand the algorithm, esp use of 'sin' and 'cos', so please any one can help me with a tutorial for the understanding of the algorithm,
Thanks and regards
-
- Synchronizing for loops running on seperate threads
by Salamandras
- 10 Replies
- Last post
by OmegaMan
- Greetings I would like some help on achieving synchronization between multiple threads running a for loop. In more detail I would like each thread to be in the same iteration with each other thread, meaning no thread would be in the fifth iteration when another is in the second or in the first... So the results would go Thread1 = iteration 1 Thread2 = iteration 1 Thread3 = iteration 1 Thread4 = it
-
- Need help with enum and color assignment
by Rick Shaw
- 6 Replies
- Last post
by akaRickShaw
- Hi, I need help with some enum and color assignment. This is what I need to do. I have an enum like: public enum statusFlag { Unknown = 0, Easy = 1, Medium = 2, Hard = 4, ExtremlyHard = 8 } From xml: (not sure how this is repesented) Unknown = Black
Easy = Green
Medium = Yellow
Hard = Orange
ExtremelyHard = Red
Now, I have a set of color for each of the different status flags.
-
- C# float -> int conversion error
by Haavok
- 4 Replies
- Last post
by Thomas Danecker
- int ix = 5860;
float fx = ix / 100.0f;
ix = ( int )(fx * 100.0f); // ix = 5859
ix = ( int )(( float )(fx * 100)); // ix = 5860
-
- view data in a collection while debugging?
by Darin V
- 3 Replies
- Last post
by anothersam
- I can see the data in datasets with the visualizer. With collections I get a datatip that allows me to expand and expand and expand but I can never find the data. Is there an easy way to view data in a collection object while debugging
-
- creating collection property
by python_and_chips
- 6 Replies
- Last post
by boban.s
- I'm trying to implement a custom ASP.net control that has a collection of objects as a property, similar to that of a dropdownlist. However I really don't know where to being with this. any advice on the following would be helpful: 1. What is the best class to derive the collection from. I'm guessing I would uses something like ICollection but not sure. 2. How would I integrate this with Visual St
-
- Visual Studio installation files
by chisoft
- 4 Replies
- Last post
by chisoft
- Hi, Please, I am trying to install Visual Studio 2005, but i receive error 1311 - '_15690_RTL_x86_enu_MM_Setup_Files_VS_STD.cab' file is missing. Please can any one send the file Regards, Benjamin
-
- Finalize data CD using XPBurn
by moorelg
- 10 Replies
- Last post
by LeeHorus
- Hey,
I'm using the XPBurn software to burning data CDs. My problem is that the data cds are not finalized at the end of the burn process. Is there a way to finalize data CDs If so, let me know.