piportill4's Q&A profile
Visual Basic concurrencymode with respect to reentrant error
For a week now, I have searched, researched, and experimented for a way to avoid the reentrant error that I keep getting as I use a datagridview. I just can't seem to find enough detail that enables me to understand how to stop the error. If I understand anything at all, I think it's related to concurrencymode. For example, one reference that I found online shows a VB declaration syntax to be "Public Property Concurrencymode AS Concurrencymode." It then goes on to show usage. Problem is, I can't figure out what to put in place of the two "Concurrencymode" variables. Where can I find more detail for a beginner like me, such as, a list of choices for the second "Concurrencymode" in the example above What should ...Show All
Smart Device Development ATL smart device project for mobile 5.0 smartphone
dear all, the developing emviroment vs.net 2005 project type: VC++/smart device /ATL smart device project(supporttng MFC) SDK:windows mobile 5.0 smartphone i add a ATL simple object into project, then compile. compiler show following error.. fatal error C1189: #error : "Windows CE .... then i add a line: #define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA and compile.. compiler says: error C2065: 'CComSingleThreadModel' : undeclared identifier error C2955: 'ATL::CComObjectRootEx' : use of class template requires template argument list 1> C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\atlcom.h(2422) : see declaration of 'ATL::CComObjectRootEx'.....etc the project was cre ...Show All
Visual Studio Visual Studio 2005 SP1 is now available!
Visual Studio 2005 SP1 has now shipped and is available for download here: http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx I'd like to take a moment to thank everyone for using the ReportViewer controls, for helping to answer questions in this forum, and for bringing issues to our attention. I have enjoyed answering questions in this forum over the last year and look forward to continuing. While we haven't been able to respond to every question posted on this forum, I can assure you that we do read all of them and use the feedback to help plan and prioritize future releases. Below is a partial list of fixes that are included in the ReportViewer controls in Visual Studio 2005 SP1. Fixed several issues around A4 ...Show All
SQL Server restore back up from sql 2005 beta 2 to sql 2005 original
hai, When i try to restore the backup which has been taken in sql2005 beta 2 and restore it in sql2005 original it is displaying the following error message. System.Data.SqlClient.SqlError: The database was backed up on a server running version 9.00.0852. That version is incompatible with this server, which is running version 9.00.1399. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.Smo) please let me know how i can restore the back. You may have to script out the schema and then copy the data from the Beta2 database to the RTM (1399) version database. You might be able to use Visual Studio fo ...Show All
Windows Forms WebBrowser instead of a FileView?
Has anyone got any links to info on using a webBrowser control as a fileview control. If you're not sure what I mean then spawn a webbrowser control and .Navigate("C:\"). It is the same control used in Explorer/Internet Explorer right I mean it browses files perfectly. It just doesn't seem to be to easy to find the selected files... So if I messed around with WndProc would I be able to extend it It would surely be easier than reinventing the wheel! Oooh. Wait a minute. I see it creates a listview when you browse files. Didn't think of that. ...Show All
SQL Server Returning a NULL value in an SSIS expression
Greetings SSIS friends, I have the following expression but it doesn't seem to evaluate findstring(eventstatus, "O", 1) > 0 "OFF" : NULL(DT_STR, 30, 1252) All I want to do is something like : All I want to do is return a NULL value if my condition is false. Your help would be appreciated. dreameR.78 wrote: Greetings SSIS friends, I have the following expression but it doesn't seem to evaluate findstring(eventstatus, "O", 1) > 0 "OFF" : NULL(DT_STR, 30, 1252) All I want to do is something like : All I want to do is return a NULL value if my condition is false. Your help would be appreciated. What' ...Show All
.NET Development what is the idea of segmented downlaod?
hi .. i want to know what is the idea of segmented downlaod which found in any downlaod accelerator if any one have sample for this in vb.net it will be good thanks in advance I do not know any code sample, but segmented download is the main idea of the accelerated download. Download accelarators split file into many parts, then download each part simultaneously. For example, if a server upload 100kb/s per connection and your program use 3 parts for downloading, then your total speed is 300kb/s. As I know, I tried to explain;) ...Show All
Visual Studio Tools for Office RibbonX - gallery like the styles one?
Hi, maybe I'm blind a little bit, but how can I make the gallery like Styles in Word 2007 - that is, having the items on the Ribbon rather in drop-down menu Thanks, Jan Hi. Thanks for reply. I have no problem with using callbacks to list items and their images, however the control is rendered like a button with menu with these items - but which control or how to set up the gallery one to get the items directly on the ribbon Like table styles or also cell styles in Excel. ...Show All
Visual C++ After installing VS 2005 SP1 the debugger doesn't show MFC source files
Having installed Visual Studio 2005 SP1 and rebuilt all my C++ projects I find that I no longer have source-level debugging available for the ATL MFC classes. Is there a fix for this If not I'll have to consider reverting to the original setup. I haven't applied SP1 yet, but chances are, you simply need to open one of the source files explicitly while debugging and you're all set again. The PDB file effectively stores the complete path of involved source files on the build machine. Since things were probably build somewhere in Microsoft's build labs, there path won't match the path on your own box. The VC debugger does some kind of mapping. This is complete speculation on my part, but it's how I'd desi ...Show All
Visual Studio Tools for Office Retrieve cell value
Hello, I would think this would be a rather easy task but it has thoroughly confused me. I am trying to take the value in cell[1,10], which is the result of a formula, and assign it to a variable in my code. So far, I have been unable to do this. I am using Excel 2003, C#. This is my code: If (dbConnection.Open != null) { Cells[1,10] = "Success"; } //Below is what does not work. string aString = (string)cells[1,10]; I have also tried, string aString = Cells.get_Value(Cells[1,10]); Any help would be very much appreciated. Thanks, ds Hi Quite easy when you know how. Excel.Range objRange = (Excel.Range)objYourSheet.Cells[1,10]; strData = objRange.get_Value(Missing.Value).ToSt ...Show All
Visual Studio Express Editions Error including file
hello, i’m trying to use Java Native Interface(JNI), and i trying to compile a file .c in the console using " cl -LD HolaNativo.c -Fe libHola.dll ", but when i press enter, this error is show: HolaNativo.c(1) : fatal error C1083: Cannot open include file: 'jni.h': No such file or directory but i have include the path of jni.h in visual c++ 2005 and i don’t know what it’s happend. can someone tell me what can i do You say you have the include path set up in Visual C++ 2005 but do you have it set up from the command-line When used from the command-line the compiler does not look at any of the settings that are internal to Visual C++ 2005. What do you see if you do this from the comm ...Show All
SQL Server Db2 driver for 64 bit
Hi everyone, Running both Sql25k and cluster to 64. Is there a DB2 provider for 64 bit If not, are there problems if you take 32 bit provider there Thanks a lot for your time, Hi Enric, If you take 32 bit provider, you will have to run package using 32 bit DTExec otherwise, it will not find the connection on the 64 bit provider... Hope that helps ...Show All
Visual C++ Drop-In replacement for the stock C/C++ preprocessor
Hi all, is there a way to 'seamlessly' replace the built-in preprocessor for cl.exe I know of other compilers which feature something like a seperately configurable complier driver. Is there sth. comparable for cl.exe cheers, aa The preprocessor is built into the front end (c1.dll), and it cannot be replaced. A preprocessor involves scanner, formerly called lexical analysis, (like Flex) and some parsing (like Bison), so Sam's suggestion still applies. If all you want to do is prepreprocess macros differently, then you'll need to write your own you preprocesor (that scans, parses, and outputs) that executes *before* c1.exe. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
.NET Development a newbie question about mdbg sample src.
in Mdbg sample src, corapi/Debugger.cs,i see code like this: public CorProcess DebugActiveProcess (int processId, bool win32Attach) { ICorDebugProcess proc = null; m_debugger.DebugActiveProcess ((uint)processId, win32Attach 1 : 0, out proc); return CorProcess.GetCorProcess(proc); } when i move mouse over ICorDebugProcess , no refrence info display. (i use VS2005 plus VAssist) i'm not so good at COM Interop, but does this code means in Managed Code like C#, i can directly use interface like this The unmanaged ICorDebugProcess interface is defined in CorDebug.idl (in the .NET SDK). Mdbg imports all the CorDebug.idl interfaces into managed code in an IL file ( ...Show All
