-
- value in string passed and not received--need help
by Ronald_00
- 11 Replies
- Last post
by Ronald_00
- hi , i have created the following codes and it does not work.
Code Snippet
public string sth;
public ProMess( string sth)
{
this .sth = sth;
}
public void dDATA( String extension)
{
string a = sth+ extension; // error occurred here, i cant get the full extension of the path.
}
and advice is appreciated.
-
- how to print pdf document with out opening from web application
by rahul dev
- 8 Replies
- Last post
by Dave S.
- Hi,
can any one tell me how to print the pdf document with out opening from the web application. I am using streamreader to read the pdf. I am getting some asci code in the print out. can anyone help out in this.
Thanks
Rahul
-
- Cast <IList>
by thukralz
- 11 Replies
- Last post
by Harsimrat
- I have something like this...
public static IList < AbstractKeyValueEntity <T>> Values<T>( ListBox listBox)
{
IList < AbstractKeyValueEntity <T>> results = new List < AbstractKeyValueEntity <T>>();
foreach ( ListItem item in listBox.Items)
{
if (item.Selected)
{
results.Add( AbstractKeyValueEntity <T>.GetLooku
-
- Variable import problems
by dudearcher
- 14 Replies
- Last post
by dudearcher
- I am a noob, and I am having a problem with variables in my progect. When I import them to another namespace it throws and exception about endless loops. Please help!!
-
- Monitor System clock and fire events accordingly
by Raihan Iqbal
- 4 Replies
- Last post
by RizwanSharp
- Hi How can I monitor the system clock and have some events fire when the hour or minute changes Or should I just run a thread that keeps checking the time in an infinite loop I think the latter would consume lot of resources.
-
- simulating hardware
by AMSS
- 4 Replies
- Last post
by AhmedSabry
- Hi All I want to know if there is any useful links that can help in building a hardware simulator using C#, if you know a place where I can get information, plz help thx
-
- set operators in C# or VB 2005
by Sylvia Langfield
- 10 Replies
- Last post
by IsshouFuuraibou
- I am trying to convert programming notes for students from Pascal. I can't find the equivalent in C# or VB for
If MonthNumber In [1,3,5,7,8,10,12]
Then NumberOfDays := 31
Else
If MonthNumber In [4,6,9,11]
Then NumberOfDays := 30
Else
If MonthNumber = 2
Then NumberOfDays := 28
Else Writeln (¡®Invalid month number¡¯);
Do
-
- Is there any different between VB.net and C#.net other than Syntax?
by Fadi Nassri
- 13 Replies
- Last post
by sriesch
- we r about to start developing a new project
som of the team dont know C# and know Vb.net
if the syntax is the only different, No problem to use VB.net
can any one tell me if there is any different.
thank you
-
- Implementing an expression parser
by Gopinath M
- 10 Replies
- Last post
by CalvinR
- Hi All,
First of all thanks you very much for spending your time to open this post. We are trying to implement a small parser which evaluates expression given by users. We have idenfied a set of operators, functions, keywords, conditional staments which are required for the language. Can you please tell us how shall we implement a parser which checks syntax of the expression and evalutes the
-
- Visual Studio runs like a dog with more than 30 projects
by AndyMc
- 8 Replies
- Last post
by AndyMc
- Hi,
Not exactly related to VS SDK, but don't know where else to post, looking for thoughts from people with a deep understanding of the VS IDE.
Over the past few years of developing with VS, each time I add a new c# project, VS seems to get a little slower to do things, to the point that it sometimes takes 5 mins to just load a form in designer mode in the IDE when I have over 100 C# project
-
- Help with RPG project :)
by Mobidoy
- 7 Replies
- Last post
by IsshouFuuraibou
- Hello all,
i am learning C# and, i want to slowly create a RPG, i dont need it to be graphic intensive, it is my first, i want to create something quite small just to get an idea of how to do it.
I would love to make something like a dungeon crawler or, something like Might&Magic (1 thru 5). I hope you see what i mean !
Does anyone have a link or a book that has a tuto that would make
-
- string vs. String / double - Double / etc.
by Finch82
- 6 Replies
- Last post
by Sean Hederman
- Hi there,
I'm currently struggleing with some details: s tring vs. S tring I found this : "The string type represents a string of Unicode characters. string is an alias for String in the .NET Framework" ( http://msdn2.microsoft.com/en-us/library/362314fe.aspx )
And this : A string is a sequential collection of Unicode characters that is used to represent text. A String object is a sequenti
-
- Handling Exceptions from inside threads?
by rodniko
- 10 Replies
- Last post
by Matthew Watson
- override public void RunThread()
{
try
{
while ( true )
{
Thread .Sleep(1);
Connect();
}
}
catch ( Exception Err)
{
throw new Exception(Err.Message); // Error : "Exception was unhandled"
}
i create the thread like that :
this .SearchThread = new Thread ( new ThreadStar
-
- Version tab didn't show up in file properties dialog box
by Buddhist
- 7 Replies
- Last post
by TaylorMichaelL
- I got a c# project, and its assemblyInfo.cs, with specified assembly description, file version, etc.
I also used one old win32 resouce file to only store some bitmaps.
I followed the instructions here to include that rc file.
But when I used explorer to view properties on the assembly, there is not a version tab, so I cannot see the assembly version or file version or other assemb
-
- Named pipes problem
by pa.general
- 2 Replies
- Last post
by Ji Cheng Wang - MSFT
- I have this as a server:
Code Block
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
using System.IO;
using System.Threading;
namespace Server
{
class ServerPipe
{
public const string PIPE_NAME = "\\\\.\\pipe\\namedPipe" ;
-
- Bluetooth and c#
by Joao Luis Canais
- 2 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hello,
Need help to find a good Bluetooth API for c# for desktop application in XP, a ny suggestion
Thanks,
Joao Canais
-
- OPC, PackUriHelper.CreatePartUri
by MyP3uK
- 2 Replies
- Last post
by MyP3uK
- I am creating package
using System;
using System.Collections.Generic;
using System.Text;
using System.IO.Packaging;
using System.IO;
using System.Xml.Serialization;
namespace Sample {
class Program {
static void Main( string [] args) {
using ( Package package = Package .Open(_f
-
- Passing a C# struct to an unmanaged DLL
by Tonyd138
- 2 Replies
- Last post
by Hugo
- I have a C# application that loads an unmanaged DLL at runtime, and calls several functions in it using P/Invoke, and delegates. In every case, when I pass a pointed to a buffer, I used the fixed key word to prevent GC from moving the memory.
Code Snippet
byte[] bPlate = new byte[15];
fixed (byte* pPlate = bPlate)
{
retVal = _LocateVehicleBarcode(Instance, ncodeToBytes(barc
-
- Compiling Native C & C++ code in VC#
by gowrishankar77
- 7 Replies
- Last post
by gowrishankar77
- Hello there!
I use Visual Studio 2005(the version that comes with VC#, VB and Tools for MS Office).
Can someone please give me a STEP-by-STEP instruction on how to compile C++ code in VC#
Kindly let me know.
thanks
gowri
-
- New to C#
by Dyna-Cube
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hey guys.
Could someone help point me in the right direction I'm new to programming other than classic ASP and using Microsoft Access along with it. I'm planning to learn C# and write my first application using that language. I have Visual Studio 2005 Team Edition. I've looked through a few "Hello World" tutorials and I'm pretty sure I can adapt to the OOP concept.
However, what
-
- Global Hook for WM_NCHITTEST
by jtackabury
- 14 Replies
- Last post
by just.a.nerd
- I am trying to globally catch all the WM_NCHITTEST messages (not just ones for my application), but I'm having some problems. I know that I will probably need a C++ DLL to handle all the messages and send them to my application, no problem, I've got that setup. But what hook do I use I've tried WH_MOUSE and WH_MOUSE_LL and the callbacks never seem to catch the "WM_NCHITTEST" message. Am
-
- COM Interop: Base class properties not exposed to COM
by Tech Quest
- 8 Replies
- Last post
by Tech Quest
- Hi, I have a C# Class Libarary which is exposed to COM. The issue is base class members are not exposed to COM.As per msdn http://msdn2.microsoft.com/en-us/library/8877bdk6(VS.80).aspx Managed Clas hierarchies flatten out when exposed as COM objects. Please let me know how i can resove this issue. Thanks a lot in advance Here is the sample Application Code: The issue is base class member properti
-
- Inherited Data Members
by pjzuber
- 7 Replies
- Last post
by pjzuber
- I have a question regarding inherited arrays. In my program I have an array of strings(protected) in my parent class. In a child class, while i have access to the array variable, all of the data in the array is missing. Is this normal procedure for c# What's strange is that while the data is missing when calling the variable directly, if i pass the variable from the parent class to the child clas
-
- lyrics finder problem
by Ra Mi
- 2 Replies
- Last post
by Marcelo Guerra - MSFT
- hey , im a newbie user in C# programmig , ok now take a look at this link http://www.lyrics007.com/Stacie%20Orrico%20Lyrics/Dear%20Friend%20Lyrics.html now im trying to create a project that the user will just enter the artist name and the song title then the program will automatically put them in their right places in the link for example : artist : stacie orrico song title : dear friend the
-
- Windows service & Windows forms (C#)
by Rade Jaramaz
- 3 Replies
- Last post
by houtexwebdev
- Hi, I have made windows service and windows application to control this service. I have used custom commands to tell windows service what to do and ServiceController class to start/stop/pause this service. Now, I need to get data from windows service, more detailed information about its status and job which is being done at that moment. How can I get data from windows service on request e.g. Windo