chris_dk's Q&A profile
Visual Studio Team System uniqe calls per data row
Hi, I am runing a loadtest that containe one web test with 3 calls in it. first call is for login with a user id. second for status refresh and 3rd with one acction to add transaction. the server is doing the transaction B2B to another sever based on the login guid. my problem is , when I start the load test , I think that more then one user is using the same data row from the DB with the user id for the login action. so bascly only that last one with the valid session will be able to make the refresh and transaction, this is resulting with error for teh validaiton text. my Q, how do I make sure that the load test will only use a row per tra ...Show All
Visual C# Conditional Compilation
Hi! Does anybody knows if there is a way to have conditional compileation in C# 1.1 I have a class file shared (using source safe) between a vs2003 and a vs2005. So far I managed to use only .net 1.1 compatible code, but know I want to add a few lines that will apply only when the class is used by the vs2005 project. For instance: string a = "string a"; string b = "string b"; #compile the following only on VS2005 string c = "string c"; #end Hi Dimitris – Since the file is in SourceSafe, why not do a branch ...Show All
Visual C++ LNK2019 problems
I'm currently migrating a DLL which compiles and links fine on Visual Studio .NET 2003 over to Visual Studio 2005. Its using a couple of custom libraries provided by a thrid party (but source included). I've recompiled the external libraries without a problem, and the linker can find them fine. I have to specifically tell the linker to ignore libcmt.lib and libcpmt.lib, as for some reason it tries to link them in (I'm compiling as a multi-threaded DLL), but that's not a big issue. The problem is that when it links, it gets a linker error LNK2019 for each of the external libraries I'm using. The error messages are as follows: error LNK2019: ...Show All
.NET Development Form stop responding when fetching data from Stored procedure
I create a form that fetch from Stored Procedure SQL The data itself returns around 3000 records from SQL The problem is when the form begin fetching data the form is not reponding at all the form will responding when the data is finished and put back to the form datagrid Is there any methode to make the form still responding to user command while waiting the data to be finished. I this methode is works i plan to fetch huge data from SAP through BAPI too Please help. Regards Freddy Halim If you are on VS2005 then BackgroundWorker class is your friend. Otherwise you'll have to do a bit more coding to create ...Show All
.NET Development Does COM Interop cache data?
When I make COM interop calls, do the results get cached in the interop object I've noticed that it seems like data is being cached. If I query a COM object, I get the same data until I instantiate a new COM object and query it. I've noticed this seems to be a general behavior when calling COM objects. Is this a function of the COM object or the managed wrapper >Is this a function of the COM object or the managed wrapper Must be the COM object. The RCW doesn't do any data caching. ...Show All
Software Development for Windows Vista Manual Frame Capture
Using vfw, we can do the manual frame capture.How can we do it using DirectShow - you might want to look at the sampler grabber example. It's the most versatile. There are some other ways which are simpler in case you want to grab just a single frame only (like using an inferface on the Videorenderer 9 if I remember this correctly). Just search the SDK-documentation ...Show All
Visual C++ Is it possible to use sgi hash_map in vs2005?
Is it possible to use sgi hash_map in vs2005 without conflicting existing hash_map How to do it I want to let this code work, which is an sgi example: struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; int main() { hash_map<const char*, int, hash<const char*>, eqstr> months; months["january"] = 31; months["february"] = 28; months["march"] = 31; months["april"] = 30; months["may"] = 31; months["june"] = 30; months["july"] = 31; months["august"] = 31; months[&qu ...Show All
SQL Server Passing Collections to Custom Code
In RS2000 it was possible to pass the entire fields or parameters collection to a custom code function. So for example, Custom Code: Function Calc(pFields) as String Return pfields("fldname1").Value + pfields("fldname2").Value End Function Report Expression: Code.Calc(Fields) This also worked with the Parameter Fields Collection. It made it possible to move a considerable amount of logic to the custom code section. In RS2005 this still works in the VS.Net Report Designer but the expression returns an error when the report is viewed through the report manager. Has anyone else used this in RS2000 Did you get it ...Show All
Visual Studio Express Editions com and microcontroler
I’m a beginner with Visual Basic. My final faculty project (assembly hardware and software) consists of driving microcontroller from PC. I have choused visual basic 2005 express edition to make graphic interface ( supervising controlling and data acquisition ) Argument: I ‘m using serial COM port for connection between devices. I my see lateral (ascii) on Hyper terminal; I have programmed my microcontroler to send me that data. And at first I would like to see number sent from microcontroller in TextBox tool. I have added serialport from toolbox to F ...Show All
Microsoft ISV Community Center Forums custom toolbar error
I built a custom tool bar for my applicatoin. It works ok on PC Excel. But I got an error message on a Mac Excel: Run-time error '-2147483640(-7FFFFFF8)': Method 'FaceId' of object 'CommandBarButton' failed If I comment out the .FaceId = 642 Then the error message becomes Method 'OnAction' of object 'CommandBarButton' failed The original code in VBA look like this: .............. Private Sub CreateDesignToolbar() Dim TBar As CommandBar On Error Resume Next Application.CommandBars("Lenses Design").Delete On Error GoTo 0 Set TBar = Application.CommandBars.Add With TBar &nbs ...Show All
Software Development for Windows Vista OLAP Reporting App "Error HRESULT E_FAIL has been returned from a call to a COM"
Hello I'm having some problems with an application and I would like some help I'm implementing the "OLAP Reporting App in ASP.NET " at my work, I has adapted the source code form Microsoft to connect to the database, it is already working, but after I create my view I need to create the "Custom PivotTable Report" but when I clicks on " Load Custom Report " I received the message below <err> Interop.OWC10 - Error HRESULT E_FAIL has been returned from a call to a Com component. </err> Someone knows what it means ! Thanks for Now This fo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Performance problem with Texture.FromBitmap
I reduced program boot time (when running from within the IDE) from 12 seconds to less than 1 second by re-writing Texture.FromBitmap using unsafe code. For me it was easy because I'm only using 32 bit textures and 32 bit bitmaps. It would be nice to see this function optimized in future releases of the SDK. BTW, Texture.FromStream has the same problem. -Jeremy FYI: I use the above code for Texture.FromBitmap and (and a similar solution for Texture.FromStream), which works as long as your bitmaps are 32BppArgb. -Jeremy ...Show All
Visual Studio Correction to above post
I'm experiencing a performance problem with Document Explorer. From what I can tell, it involves online help -- in other words, if I limit it to use just local help (full MSDN installed on a local drive), it functions more or less normally. If I let it also use online help, searching simply locks up Document Explorer. I use the words "more or less normally" because even using local help, it takes almost two minutes to start up, and also takes almost two minutes to access the Tools/Options dialog (i.e. I click on Tools/Options, it takes almost two full minutes to respond). I've watched the TCP activity during those moments ...Show All
Visual Studio Can't uninstall MSDN Library for Visual Studio 2005 Beta
A while back I installed Visual Studio 2005 Team Suite Beta 2 Version on my laptop and used it. I now have the latest Visual Studio 2005 Professional and I want to install it but I can't. MSDN Library for Visual Studio 2005 Beta will not uninstall. I've tried just about everything but everytime it goes through the uninstall process at the last possible moment it "rolls-back" and dosn't perform the uninstall. I'm stuck. I read through most of the messages here to try to find a clue and I've tried several many good suggestions but still with no success. Any ideas would be greatly appreciated. Thanks. ...Show All
Windows Forms Another ComboBox Quandry!
I posted this on another forum, but I'd like some more feedback, so I'm posting it here as well. :D I've got a combobox that I can either type into (I have an autocomplete function implemented, see below), or select a value with my mouse. How can I catch and run a sub on pressing the enter key, tab key, or clicking on a row, but no other keypress Keypress sub of combobox(es): Code: Private Sub ComboBox_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles CboLookupByAsset.KeyPress, CboServerStatus.KeyPress, CboLookupByName.KeyPress formBusy = True ...Show All
