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

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

Jamesc231321

Member List

BennyWang
aureole
Praveena Karuturi
patternagnstusr
Khenat.Ram
regthesk8r
swordV
Chinwa KneeHo
Robin E Davies
Zulbaric
adr78
Paul Burg
rknh_20
Ali Jannatpour
Saravanan.Chinnusamy
John Stewien
Lejing
-Den
Paul Johnston
Silencer#1
Only Title

Jamesc231321's Q&A profile

  • Visual C++ LNK 2019, inline functions

    I made a class in the header file class Foo { public: float area(float x, floaty); }; in the .cpp I tried #include "Foo.h" inline float Foo::area(float x, floaty) { //lot's and lot's and lot's of stuff . . return variable; } and I get... error LNK2019: unresolved external symbol "public: float __thiscall Foo::area(float x, floaty)" If I take away the inline everything works. No, we don't want the code to be in the header. What am I doing wrong ( 2003 .NET) Maybe it's worth adding that VS 2003 & 2005 support what is called "link time code generation". This allows the compiler to inline functions even if you are not using inline and the function is defined in a ...Show All

  • Gadgets About the access data across the domain---Using Web.Network.CreateRequest API???

    Hi All,   In my gadget developing process, I have to consume web service from a different domain for gadget.start.com or live.com.   so I met the issue, when my gadget published in third-party, and user want to use it, he has to change IE security level and set 'access data across domain' enable!   Through the study, I found  this restriction just come out when I use   Web.Network.Type.XMLPost to invoke webservice and get response. For other request sending type(XML,XMLGet), it needn't change IE settings. So I hope Some guys can give me some advice on solution or more explaination, I think  a gadget always pop up access denied or ask user to dro ...Show All

  • .NET Development ReadByte eating resources in 2005

    Hello all In some parts of my code, i use Marshal.ReadByte and .WriteByte quite a lot. (And Write/ReadInt16, -32, -64). However, in .NET2005 they are up to 100 times as slow as in .NET2003. Here's the code i use for testing: Dim ptr As System.IntPtr = Marshal.AllocHGlobal(50001) Dim Key_nr As Short = 0 Dim loc_cnt As Integer start = Now For loc_cnt = 1 To 50000 Marshal.WriteByte(ptr, loc_cnt, CByte (loc_cnt Mod 200)) Next finish = Now Me .TextBox_WriteByte.Text = (finish.Subtract(start)).TotalMilliseconds.ToString Marshal.FreeHGlobal(ptr) And i really do need to use these functions... Even more surprising is the performance difference in the RtlMoveMemory: Private Declare Sub Cop ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Framerate component

    Based on this thread I have created a simple framerate component. Considerations: You might change the namespace in line to your game's namespace. Currently, the game window's title will be used to display the framerate (this will change when XNA supports fonts). As a workaround, you can use garykac's bitmap fonts example to modify this behavior. If "Enabled" is set to false, framerates are not calculated (Current is set to 0). If "Visible" is set to false, the current framerate value is not displayed (but yet it can be calculated if enabled). When you want to show the decimal part of the framerate value (that is, "ShowDecimals" is set to true), you can set the display format to the fixed one (like "0.00"). You can also set whether the t ...Show All

  • Visual Basic multiple textbox counter

    i have a program with about 30 textboxes on it for number inputs. I need to make a label that on a tab or mouse click it will show the total number amount from each text box. for instances tb1 -- 10 tb2 -- 3 tb 3 -- 5 label = 18 Thanks Michael Hi, Define what tb1--10, tb2--3 and tb3--5 are please. Are these 3 separate textboxes or is tb1--10 all of the 1st 10 textboxes What number format are you using integers or decimal Are you wanting to simply add up totals from the lot to show the answer in a label or a textbox or 4 separate answers I'm guessing here. Put this code into a button-click event Sub or label-click event Sub. Dim answer1, answer2, answer 3 As Double ...Show All

  • Gadgets How to make ActiveX Callback functioning

    I cannot get the office name control to call back to a jscript eventhandler. (Office 12 installed in my case) The page works well if just rendered in a browser, hoever it does not function when run in a gadget. The thing that fails is that the eventhandler is never called when a buddy chnages state. The callback function is registered by calling the OnStateChange function as shown below. is such a callback not allowed (or only with additional magic ) I'd also appriciate suggestions for debugging this as I am not quite sure how to approach this Jos Could be a security issue, instead of testing in a browser, run it as an HTML Application . ie rename it to <filename>.HTA and run it. HTA's run with similar security to Side ...Show All

  • .NET Development cross thread exception in background worker_runCompleted?

    I have read about threading and know that updating GUI components in a worker thread is a no no. I thought when using a background worker on the runworkercompleted event that it was back on the main thread and you can edit the components. I posted my code, i get a cross thread exception when trying to update the labels in the switch statement. thanks private void bgwCurrentWorker_RunWorkerCompleted( object sender, RunWorkerCompletedEventArgs e) { if (e.Error == null ) //background process successful 'e' should be xml string { string sWeather; sWeather = ( string )e.Result; if (sWeather.Contains( "Success" )) { XmlReader reader = XmlReader .Create( new System.IO ...Show All

  • Visual Studio Team System Sharepoint Services 3.0

    What's going to happen to my TFS machine if I just upgraded the current WSS installation to v3.0 Thanks, Sammy I have had tried to install TFS together with WSS 3.0, but it failed. I was told from Redmond that TFS cann't not work on WSS 3.0 now. But some related Orcas bugs about WSS are in fixing recently. ...Show All

  • .NET Development Backup and Restore a sql database using vb.net

    i'm trying to create a windows application with two buttons one to backup a database and the other is to restore it, can so me one assist me with this Thanks, Rama Hi, The best and easiest way to backup/restore database is sql. So you have ust to execute Backup/restore sql commands on the server. Backup command : "Backup database YourDataBaseName to disk = YourFilePath" Restore Command "Restore database YourDataBaseName from disk = YourFilePath" You must notice here that the YourFilePath is a path of a file on the database server. You cannot do Backup/restore to/from files that are physically not on the database server. To execute the command just connect to the m ...Show All

  • Visual Basic downloader with cookies support

    Where to start to get some infomation on cookies session because I am writing my own mass downloader program. Thanks for the help!! ...Show All

  • Visual Studio Express Editions database tables doesn't update

    Hi. I have few tables in my database and they don't want to update. I changed database property "copy to output directory" to copy if newer. Then after I'm inserting data in my database everything works but changes doesn't show in the tables. Below u can see part of my code, I'm using Insert, Fill and Update. I can compile program over and over again and changes stay but when I open "Show table data" everything is going back to beginning. What should I do Dim datasave1 As New MaintenanceDatabaseDataSetTableAdapters.EmployeeTableTableAdapter Private Sub Add_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click firstname = TextBox1.Text lastname = TextBox2. ...Show All

  • Visual C# When does imageindex actually update the button image?

    Good day all! I'm brand new to Visual C#, so this is likely a beginner question, but it's stumping me. I am trying to create a button that, when you click it, it changes the button image for a couple of seconds, then reverts it to normal. I loaded up an image index with several pictures to use, but am getting a strange issue. When the button is clicked on, it waits the amount of time I request (2 seconds), but the picture never changes. (I know it goes through the code, because it does other things unrelated to the button at the same time.) The code is really as basic as (forgive capitalization issues): button1.imagendex = 6; thread.delay(2000); // some other code happens here totally unrelated to the button button1.imageindex = 10; I'm tr ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. PIX

    any way to use PIX with XNA... I like those Acronyms PIX should not care that this it is watching an XNA program. It intercepts the underlying native DirectX calls. If you can't get it to work then it could well be a PIX bug. However you will have to understand the native DirectX calls and how XNA uses them. e.g. PIX does not know about SpriteBatch - you will see lots of dynamic vertex buffers being drawn in PIX. ...Show All

  • .NET Development System.Configuration.ApplicationSettings with DataContracts

    Hi all, is it possible to use ApplicationSettings together with data contracts If yes, how to configure the data contract serializer for the settings class Ciao ThomasD I've got an own provider, which persists the data in ADAM. Several clients may share a "central" configuration. In order to be prepared for versioning issues I want to use data contracts for my settings and therefore need to use the data contract serializer. Additionally the data contract serializer is much more faster than the xml serializer, which would result in an improved performance. Ciao ThomasD ...Show All

  • Visual C# Returning Type[] of inherited types

    Does anyone know of a quick and painless way of returning an array of all the inherited Types of a given base class For instance, I have the following: Type myType = typeof(Motors.Motor); Type[] t = myType.GetNestedTypes(); Motor contains many different types of Motors. I understand that GetNestedTypes only returns the classes nested inside of Motor. All I need is a basic method that returns an array of the types which inherit from Motor. I can write this method myself with very little coding, but I figured there had to be something out there that already did this. Hi, There is not any method because goes again OO design. If you have to do it from an external assembly I don't see a problem with your impleme ...Show All

©2008 Software Development Network