432 Posted Topics
Hi I'm wondering if anyone can think of a generic reason why visual studio 2010 would act in the following mannor. If I run my code using ctrl + F5 (run without debugging option) it works fine and as expected. However if I run it in debug mode it acts … | |
![]() | Re: By "duplicating". do you mean some cards are still in the same position? If so, thats is perfectly acceptable, a real worls shuffle will not always result in each card at a different position. ![]() |
Sorry for noob question. If a condition is tested with or, and the first condition is met, are the further conditions tested? For example, is "b" even tested in the following code?... [CODE]bool a = true; bool b = false; bool c = false; if (a || b) { c … | |
Sorry if this is a silly question, but i'd just like to be certain. I start my app, and then immediately start a new thread to carry out some tasks while my 'main thread' (if that is the term to use) is doing something else. Do all method calls from … | |
I'm having big trouble understanding this. [CODE]namespace nspace { public class eclass { public double elevation { get; set; } } public class Program { static void Main(string[] args) { eclass first = new eclass(); first.elevation = 500; Console.WriteLine(first.elevation); Console.ReadKey(); } static void setup() { Console.WriteLine(eclass.first.elevation); // line dosent work … | |
Hello all. If there is one aspect of any language I cannot understand it is regex. I have some strings I need to parse, of varying length and content, but there are patterns. There 2 base types the first always begins with [B]%zn%[/B] and can be short or long and … | |
Hi I'm having some headaches trying to find how to get the process of a parent application that starts my C# console app. I've been trying a lot of things all day and come up short. The most likely candidate was this, except it does not return what I expect … | |
Hi, I'm an absolute noob to php, I know a little, enough to get me by so far by learning from snippets and suchlike. Before I dive into a new area (sessions) I'd like to know if what I am intending is possible or silly. [U]What I have[/U] I dont … | |
Re: I'm no expert but I think you need some error checking to debug your code here is a suggestion of 1 thing that could be wrong "$image = mysql_query("SELECT * FROM items WHERE id=$id");" I think should be $image = mysql_query("SELECT * FROM items WHERE id='$id'"); Quotes around the variable. … | |
After my last project, I passed the finished job onto a friend to test. She reported that when she tried to run it, she was pesented with an error that some dll files were missing (Im sorry I cannot remember them now), I searched while on the phone with her … | |
I wanted to make a program to help me find the locations of some double valuse in current process memory. I found some code snippets to study, but Im failing at the first hurdle. First let me be clear that I am not the author of the below code, but … | |
Can anyone tell me where to get started to get an md5 or sha1 checksum of a given file. I've searced around and all I can find are utilities, I also looked at wincrypt but It seems to me that it just does passwords and strings and suchlike. Any help … | |
Hi. Hoping someone could direct me to a starting point for project. No code, I havent started yet. Im looking for a start on finding the proccess exe name that calls a function in my dll file. Just looking for a place to start looking. | |
Hi. I need to check a folder for the existance of a specific file extension. I've been successful checking for a full filename including extension, but Its just any instance of a filetype I'm after. My question is, Is there an existing method in a library anyone knows about that … | |
Re: thats a great story, but you are more likely to get help if you say what is doing aswell as what it is supposed to do. | |
I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I … | |
Re: Probably. I have found this place to have plenty of helpful people. However you should put a little more effort into making a post. 1. Explain your specific problem 2. Convey what you have already tried, and any failings you encountered 3. Post your code efforts (wrapped in code tags) … | |
Re: I've noticed a lot of posts here with kids wanting their homework done. Is this a new thing or has it always gone on? and does anyone ever fall for it? | |
Hi all. I recently began to give C++ a go again after failing on the first attempt. I quickly ran into the same problem that led me to C# the first time around. Strings, damn strings. I simply cannot get my head around arrays of charactors, they stress me out, … | |
Is it possible to password protect a dll at compiletime. Please excuse my noobness, but let me explain what I mean. You app an runtine makes a lot of calls to a function in a library so it opens it and keeps it open for the duration your app is … | |
I wonder if I am missing something? Everytime I dotfuscate a project its just exactly the same as the origional. I use visual studio 2010, but dotfuscate seems to have some options unavailable. I've read some tuts, "Point the program at the executable" etc... What could I be doing wrong? | |
I wonder if someone can point me toward some native functions to help me locate the physical co-ordinates of a flash object on a webpage. Its not static and depends whether there are advertisements on the page and other user specific options. Unfortunately I have no code yet as I'm … | |
Hi all. I'm having some difficulty getting some hardware info I can get the Hdd serial, and CPUID. [code] string cpuInfo = string.Empty; ManagementClass managementClass = new ManagementClass("win32_processor"); ManagementObjectCollection managementObjectCollection = managementClass.GetInstances(); foreach (ManagementObject managementObject in managementObjectCollection) { if (cpuInfo == "") { //Get only the first CPU's ID cpuInfo … | |
[code] namespace sqlconnecttest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { SqlConnection myConnection = new SqlConnection("user id=name" + "password=pass;server=http://www.mywebsite.co.uk;" + "Trusted_Connection=yes;" + "database=mydb; " + "connection timeout=30"); try { myConnection.Open(); } catch (Exception f) { MessageBox.Show(f.ToString()); } } … | |
I have a form with 2 labels and 2 buttons Button1 changes the label1.Text of the form // works fine Button2 starts a new thread and the method is supposed to change label2.Text However I get compile time error: "error CS0120: An object reference is required for the non-static field, … | |
I use an ini file in another language to load user settings into an application. However, I see that C# does not natively support ini files, and favours xml. My problem is I've never worked with xml and Im new to C#. What I have been looking for (unsuccessfully) is … | |
Hi. So far I have been moving along relatively steadily with my learning of C#. One thing I havently really bothered with yet is try and catch. The reason I havent looked into this is I dont really know in what cases I would need to use it. So my … | |
Hi everybody. I would like to know if its possible do dynamically manipulate the scrolling of a webpage in a WebBrowser control in my Form. Either by a page loaded event or some other event. Also if that is possible, can it be done without the control having scrollbars. I … | |
Hi. I am new to C# and a little stuck on arguments to pass to an external function. The intelisense tells me the function has these parameters [code]void LPP.XRS_Search(int x, int y, int w, int z, int cl, int vr, int sp, int[] PointResult)[/code] here is my call [code] int[] … | |
Re: I have, but its my first ever visual studio so unfortunately cannot give any comparisons to earlier releases. Although I think its pretty cool. | |
Re: Intersting. is there a way to detect when the scrollbar is initiated and have it scroll to a certain position of the page? in pixels maybe | |
Re: A 5 year gap then an abiguous question. |
The End.