Software Development Network Logo
  • .NET Development
  • Visual Studio
  • Visual FoxPro
  • SQL Server
  • SharePoint Products
  • IE Development
  • Audio and Video
  • Windows Vista
  • Microsoft ISV
  • Visual Basic
  • Game Technologies
  • Visual C#
  • Windows Forms
  • Smart Devicet
  • VS Team System

Software Development Network >> sroughley's Q&A profile

sroughley

Member List

Code-Master
Lili Gao
WV John
JPC16
jan_bp
GrayMatter Software
sweet_salt
Pete Atkinson
Hossam Abdel Wahab
vinclaro001
JR2006
help-linux
LOGIC LORD
Helio Gama Faria Filho
Hans L
Álvaro Peñarrubia
Ali Jannatpour
EvgenyG
ahallowell
Clay B
Only Title

sroughley's Q&A profile

  • Visual C++ definition of dllimport function not allowed

    wrapi.h ... #include "WRAPIExports.h" ... .... //macros #ifdef WRAPI_EXPORTS #define WRAPI __declspec(dllexport) #else #define WRAPI __declspec(dllimport) #endif ..... HRESULT EnumerateDevices(WRAPI_NDIS_DEVICE **ppDeviceList, long *plItems); ... .... ////////////////////////////////////////////////////// wrapi.cpp ..... .... ... //exported function implementation WRAPI HRESULT WRAPIEnumerateDevices(WRAPI_NDIS_DEVICE **ppDeviceList, long *plItems) { return theApp.EnumerateDevices(ppDeviceList, plItems); } ////////////////////////////////////////////////////////// WRAPIExports.h .... .... #ifdef WRAPI_EXPORTS #define WRAPI __declspec(dllexport) #else #define WRAPI __declspec(dllimport) #endif .... ... //exported functions WRA ...Show All

  • Visual Basic Avoiding shared properties in classes

    Hi, I have a class structure with multiple subclases. My problem is, that when i instantiate the subclasses, i cannot acces properties from the topclass, within the subclasses, unless I declare them shared, thus eliminating the opportunity of creating several instances of the topclass. How do I create a property in a topclass, that can only be accessed in all instances of the subclasses, without being shared with other instances of the topclass An example: Public Class TopClass Private arrObject as Object() Public Class SubClass Public Function getObjects As Object() Return arrObject 'Results in error if arrObject isn't shared in class TopClass End Function End Class ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. flicker in 1280x800

    Hello guys! I'm writing a simple game using xna game studio express and in 1280x800 resolution I have a flicker effect :( My graphics card is an ATI Radeon Xpress 200M with 128mb what's happen tks! Shinji ^___^ I found the problem! A duplicated SpriteBatch was causing the flicker, SyncronizeWithVerticalRetrace wasn't necessary!!! Thanks ...Show All

  • Visual Basic Turn on PC

    Hi I'm want to tweak my pc from VB.net So I wan't to Turn My pc on , in specified time . Is this possible via VB.NET How is your code going to run if the PC is turned off The answer is obviously no, in any language. Some PCs can be started by a network message, that's a motherboard feature. ...Show All

  • Visual Studio 2008 (Pre-release) Treeview, ContextMenu and finding the item where the mouse was clicked

    I have a TreeView with a ContextMenu. When I click on one of the items in the ContextMenu I want to find out what item in the TreeView is at the position where the ContextMenu was opened. I have been trying to find it by calling InputHitTest (on TreeView) with the Mouse coordinates - I think this may be where my problem is I am using Mouse.GetPosition(this) to get the point of the mouse. Anyway InputHitTest returns an IInputElement and it always comes back with the Grid that my TreeView is inside of. Am I going around this completely the wrong way What is the right way Thanks. Drew the code you posted doesn't seem to work for me. The Source property of the arguments is set to the TreeView rather than an I ...Show All

  • Windows Forms Generation of primary key value within the insert stored procedure

    I am using VS 2005 (VB). I many of my previous applications I have insisted on using unbound forms, but I am now trying to make use of bound controls and the "bindingsource". However, my insertCommand causes an exception. I want to insert the new record without supplying the primary-key-value from the vb-application, but want to leave it to the insert-Storedprocedure to assign the value to this column. The insert-command works fine if I put a dummy value in the primarykey-textbox, but throws an exception if I leave it blank. Since the insert stored procedure does not require any value for this column, I find it strange that the bindingsource-object do so. Is it possible to use this kind of insert-procedure with the bindingsource- ...Show All

  • SQL Server Need help with DTS Jobs on 2005

    I need to copy (not convert) a number of existing DTS jobs and the related DTS packages from a 2k machine to a 2k5 machine.  I'm trying to avoid having to re-create the Jobs and type in all the Jobs steps in 2005. (Yes, we will be converting the jobs, etc. but that's not an option right now) I've had good results using the nifty technique from SQLDTS.com ( http://www.sqldts.com/default.aspx 204 ) for the packages, but this doesn't quite work for the Job steps due to the new 'Step_UID' column in the sysjobsteps table in 2005. I've tried a number of variations in DTS to populate this new column, which is of type uniqueidentifier, but still no joy. Does anyone know of a workaround or a better method to get ...Show All

  • Visual C# confused with runtime error and compiletime error

    class B { int32 x; } class D:B { int32 y; } B b = new System.Object(); //This statement will cause a compile time error. D d = (D)b; //This statement will cause a runtime error. I am really confused, I can't find out the differences between the two statements above, I think they are the same.Who knows why Any help will be appreciated. You're example is malformed. In the latter case you use an explicit cast that bypass compiler type checking. Try this instead. B b = ( B ) new Object (); D d = ( D ) new B ();    Both compile and both raise an InvalidCastException at runtime, as expected. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox Live Stats/Gamertag Webservice?

    Is there any means to access the Xbox Live webservice to read gamer related stats so as to create a custom stats program in .NET Is there a published API for this I've seen may websites doing mashups of gamer info and was interesting in trying it out if its possible. That, no. You can get the GamerTag, which is what I thought you meant - http://www.xbox.com/en-US/MyXbox/embedgamercard.htm You'd need to be a registered 360 developer to have access to the Live data and API. edit: Hmmm, I did find this . ...Show All

  • .NET Development XslCompiledTransform load large xsl file throw application exception

    Hi, Unhandle application exception (w3wp.exe) being throw when the xsl file contains over 2000 lines. The same xsl file is being used with 1.x's XSLTransform class without problem. Does anyone have similar problem Ray Hi, That is true when I removed 2/3 of code in the xsl, it works just fine. I just wonder why it has no problem in XslTransform class but problem in XslCompiledTransform class. In all my xsl files(around 130KB/file), it contains extensionobject which will be use in the XsltArgumentList class when transform. Thanks ...Show All

  • Visual Studio SKU011.CAB solution

    Go into Registry Editor (Start, Run, "regedit"). Go to HKEY_LOCAL_MACHINE, Software, Microsoft, Office, 11.0, Delivery. There should be only 1 directory under Delivery, which is your DownloadCode (mine was 90000409-6000-11D3-8CFE-0150048383C9). Select that directory. On the right side of the screen, right-click on CDCache. Change the value to 0. honestly works with out a hitch. Hi, I had the same problem with the Error 1311 after the regedit. Do you have more than one Download codes Because I had 4. The 1st one is different than the other 3. So what I did... I deleted the 1st one only & changed the value of the CDCache of the 2nd one from "2" to "0". Try this! But make sure you ...Show All

  • Microsoft ISV Community Center Forums iexplore.exe - Application Error

    I get the following error message when I close my internet explorer. The instruction at "0x62304320" referenced memory at "0x62304320", The memory could not be "read". Click on OK to terminate that program. Any ideas what is causing this I also get error message with my explorer. It says "0x00139ae5" referenced memory at "0x00139ae5". The memory could not be "written". It happened when I installed and used IE 7 beta. Already getting frustrated with this. ...Show All

  • Windows Forms Referencing New Row

    Hi all, I am having difficulty referencing a new row created like this: Me .BindingContext(dtaSet.Load).AddNew() I have controls bound to a dataset that works just fine. The problem I am having is that I need to insert data into one of the rows like this: dtaSet.Load( Me .BindingContext(dtaSet.Load).Position ).lc_CustID = dtaSet.Customer(cboCustomer.SelectedIndex).c_ID When I try run this code I get an exception saying that there is no row at position 0 I understand it's because me calling the AddNew creates the row but it doesn't actually exist in the dataset yet. All I need to know is how would I reference the newly created row so I can insert data into it. Any help would be most appreciated. Regards Eric ...Show All

  • Windows Forms Designer form

    Hi-- I'm just learning how to program but I'm already having problems! I saved my program to an hb port and now when I try to open it, I can't find the designer form. I can still change codes and stuff like that but I can't add any buttons to the form. I'm so frustrated but I bet this is probably something really simple. Any help would be greatly appreciated because this is a school project due tomorrow night. Thanks! Sounds like you are missing a class file - check that each form has: 1) A resx file 2) a .cs file (or vb) 3) and possibly a Designer.cs (or vb) file Also ensure that your files are not read-only. Good luck with the assignment. Regards, Luc Pettett ...Show All

  • Visual C# Problem On inputFile Control

    In my aspx file, I have one form tag, in which there are several controls of textbox, inputFile and submit. Sometimes I need to render text by textbox control as well as file by inputFile control, but sometimes I only need to render text by textbox. But if I ever uploaded one SINGLE file, ever since  no matter whether I have chosen file in the inputFile control, if only I clicked "submit" button, the previous already uploaded file would be rendered AGAIN along with the text. It seems that the control "memorized" the file rendering! Pls help me to fix it, thks! you are best to ask the question over on http://forums.asp.net , since this question is ASP.NET specific. The forum over there handles anything relati ...Show All

©2008 Software Development Network