Wee Bubba's Q&A profile
Visual C++ Hexadecimal Representation of an object?
Hi, I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003) Thanks! Would doing this work Convert::ToInt32(objectname, 16); Thanks ...Show All
Visual Studio Express Editions DataGridView Money Issue?
I need to list currency in a cell of the DataGridView, I chose "Money" Data Type as this made sense to me, and have two questions. 1) is it possible for it to automatically format "$" signs and "," 2) The amounts that I have entered into it already it is adding an extra "00" to the end of each amount. It is not adding a ".", so I don't know why it is adding the 0's. Thanks, -Matt Hi, Select the gridview in the designer and select Edit columns, select the column that must be of type currency, in the property grid edit the DefaultCellStyle. In the property grid that appears edit Format. In the format dialog that appears select currency and you can ...Show All
.NET Development xDataAdapter functionality
Given xDataAdapter of x .NET Provider in ADO.NET 2.0 should xDataAdapter call row.AccepChanges() for an Insert command before updating output params and record returned during xDataAdapter.Update in order to ensure that Original row values are filled Original values are necessary to ensure that DataSet Merge operation works correctly in case PKs are returned from data source after insert either by output params of a SP or a returned record. I think my question was not so well formulated. Microsoft documentation for DbDataAdapter.Update Method (DataRow[], DataTableMapping) says: When using Update , the order of execution is as follows: The values in the DataRow are moved to the parameter va ...Show All
Visual Studio Express Editions books for ADO.net
Hi i am new to VB.net windows application. can you please suggest me some good books for ADO.net Thanks in advance http://www.amazon.com/s/ref=nb_ss_/002-4554394-5616821 url=search-alias%3Daps&field-keywords=ado.net&Go.x=7&Go.y=10 ...Show All
Visual Basic can anyone help related to TAPI
hi, i am working over TAPI (telephone application programming interface). i want to build a GUI that can show the current location of the caller using caller_ID. can any one have any idea for any related add on / lib Gaurav Raval wrote: hi, you are right. there is bit problem. but such application will definately helpful in case of protable devices such as laptops. thanks for the help but.. you jost post the result of TAPI search... isn't so Yes i did and that was my intention. actually i am looking for tapi related power pack. if you can really help.. gaurav Hi, Power Pack, not heard of one yet, try a search on google for all TAPI related stuff or on any other search engine. Maybe you ...Show All
Visual Studio Express Editions Problem Adding DLL to C# Project
Hi, I wrote a simple dll in C++. I am trying to add it to a new C# project but I get this: "A reference to... could no be added. This is a not valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible , and that it is a valid assembly or COM component" The file I'm trying to add called: Worker_Class.dll Please help, what could be the problem Iram Thanks!!! But I have few questions: 1. where should I keep the DLL I mean in which path 2. .Net does not recognize the ' DllImport' System.Runtime.InteropServices Iram ...Show All
Smart Device Development Native Exception Error - 0xc0000005
I am running the following code - which takes the data from an XML file and updates a SQL Mobile table - it seems to consistenly throw a native exception error (ExceptionCode: 0xc0000005) Here is the code: #region DataRefreshFromXML public void RefreshDataFromXML() { if ( File .Exists(appPath + @"\data\HandheldInventory.xml" )) try { DataSet ds = new DataSet (); ds.ReadXml(appPath + @"\data\HandheldInventory.xml" ); if (ds.Tables.Count > 0) { using ( SqlCeConnection cn = GetConnection()) { SqlCeDataAdapter da; da = new SqlCeDataAdapter ( "SELECT * FROM MobileInventory" , cn); SqlCeCommandBuilder cb; cb = new SqlCeCommandBu ...Show All
Visual Studio 2008 (Pre-release) Binding to an entire object
I am trying to bind to an entire object like so: < DataTemplate DataType = " {x:Type local:MyObject} " > < StackPanel > < Rectangle Height ="10" Width = " {Binding RelativeSource={RelativeSource AncestorType={x:Type local:MyObjectControl}, AncestorLevel=1}, Converter={StaticResource MyConverter}} " /> </ StackPanel > </ DataTemplate > When MyObjectControl is created the first time, this template is applied and my converter is called and everything is fine and dandy. However, when I change a property of MyObjectControl, this is not re-updated and my converter isn't called. Apparantly, my problem is that I have no way of saying that my entire object has ...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. Phong is just gouraud
I am testing lighting on a landskabe. Doing so, I wanted to use ohong shading, but aparently the phong is just gouraud. http://www.greenleaf.dk/public/phong/phong.html is a page with my landskabe with and without normals with the different shadings. It is quite obvious that phong is being rendered quite non phongish. In the example scene the light is comming directly from behind the camera. I am using managed dx with vs2005. I did not install the sdk this time, but only the managed redistributables. That has not given me any problems before though. What would cause the phong to not work Usually I do install the sdk. Currently I do not, since I was testing the dx operation on systems without the sdk. It wo ...Show All
Windows Live Developer Forums adCenter - Java Example with axis?
Hi everyone. I was wondering if anyone knows of a working example of using the adCenter API with Java and Axis or has one that they'd like to share with the group. I'm a newbie trying to put together an implementation and am running into all sorts of issues. The first is that I get invalid characters in the generated CountryTypeTarget class. The second is that I'm having trouble authenticating ever since 3.15 was released. Any help would be appreciated! Thanks, Joe Have you had any progress on your efforts to program against the V2 API using Java I'd in the process of doing the same thing with ColdFusion, which generates Java code for execution. Thanks, Reed ...Show All
Windows Forms getting rid of textbox "flicker"
I have a textbox that I constantly update. And to do so i use: textConsole.Text = message; //message is the string i want to set it to textConsole.Select(textConsole.Text.Length, 0); textConsole.ScrollToCaret(); But it updates too often that it flickers when it is updated. I know about the AppendText() method but for what I am doing I havent yet found a way to use it properly (im still trying). So if anyone knows if it is possible to reduce the flicker let me know Thanks nahguam wrote: It may help to call SuspendLayout() before you do your updates to the textbox then call ResumeLayout() afterwards. Just for my understanding, what does that do Quilnux ...Show All
Visual C++ Strange Error - Please Help
Hi all, I wrote a dll (using a definition file). When I call one of the function within the dll from another application (to test the function), I receive a strange error (Messagebox format): Application.exe - Ordinal Not Found - The ordinal 34 could not be located in the dynamic link library. Note I have linked with the .lib file, have included the header file and copied the .dll file to the application directory. (Note that I'm exporting 34 functions) Can anyone help Thanx Sarath, thanx for the reply. Yes, according to me I have exported the functions correctly. The thing is all the functions work, except the last three. The names of the last three functions for example is: function_1 function_2 function_3 In def fil ...Show All
Visual Studio Merge not getting all files
Hi all, I am trying to do a merge between my root branch and my own development branch, some of the files are missing from my dev branch. I did a treediff and it shows that there are new files in the root branch, but when i try to merge it does not show those files. I tried the command line and there is an asterisk next to the changeset which was merged in. I looked at the documentation also and this is what I could find. "The asterisk ‘*’ next to changeset 147 indicates that only some of the changes in that changeset #147 were merged into changeset #167." Is there any way to resolve this and make sure that everything is merged I have tried using the UI as well as the tf merge command but of no help. Suggestions are w ...Show All
Visual Studio Express Editions uploading express to 1&1
I have made a rather simple login site using the tutorials I have found regarding membership and would like to transfer this to my hosting site (1&1), however I believe I need to have a .bak file to upload which I think is directly related to SQL2005. What do I need to do to accomplish this. Any help (and well described) would be great. Thanks in advance, Thanks Jon, SO I would need to create a instance of SQL2000 on my machine and create a .bak file from that Can I create a .bak file with Express and use that file for the transfer Regards, Patirck ...Show All
