Aaron Oneal's Q&A profile
Smart Device Development time_t unsigned with WinCE
Hi, We found that on WinCE the time_t typedef is unsigned, it should be signed and not unsigned. Also the timeval struct should use time_t. Can MS correct this Johnny ...Show All
Visual C++ Advice needed
I have been tasked with providing a front end interface to an existing MFC-based DLL. It is a plain, old DLL - no COM interfaces. The DLL has some APIs that have parameters that involve template types and pointers. The goal of the project is to provide a .NET DLL that acts as a "pass-thru interface" into the existing DLL so new, .NET clients can easily utilize the DLL. My question is, would there be any benefit one way or the other in using C# or Managed C++ for my new front end application thx in advance, todd Yes, I do have access to lib and .h files. However, I'm confused in that if I want a Managed C++ app, it seems like there would be a problem if I compile using unmanaged lib file ...Show All
Visual Studio 2008 (Pre-release) Wire Dump?
How do I do a wire dump of the SOAP request/response on the client side using WCF and not any kind of sniffer/proxy tool You can enable message tracing/logging on your client configuration file. Here's a good description of the options available and how to configure it. ...Show All
Windows Forms How to get the next item?
If the user have selected an item, how I can work with the NEXT item (LISTVIEW) ...Show All
.NET Development .Net 3.0 Install Error
Hi I'm getting the following error when trying to install .Net 3.0: >From dd_dotnetfx3error.txt: Communication Foundation. MSI returned error code 1603 [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [01/11/07,10:52:43] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 was not attempted to be installed. >From dd_dotnetfx3install.txt: ... [01/11/07,10:52:42] WapUI: FProductIsInstalled (NOT installed): -1 [01/11/07,10:52:43] WapUI: Obtained failed/cancel flag [01/11/07,10:52:43] Setup.exe: GetComponents() [01/11/07,10:52:43] Setup.exe: get_Components() [01/11/07,10:52:43] WapUI: DepCheck indicates Windows Communication Foundation is not installed. [01/11/07,10:52:43] Setup ...Show All
Visual C++ adding a watchpoint (breaking when a variable changes)
How is it possible to add a watchpoint in Visual Studio. A watchpoint is basically a conditional breakpoint that is _not tied to a codeline_. What I want to be able to do is to break whenever someone changes a particluar variable. There seems to be two options: "Watch" a variable and see for myself if/when it ever changes. This is slow, and doesn't really work if you're debugging event/time critical bugs. Debug->New Breakpoint->New Data Breakpoint. This seems to be what I want, but the menu option is always disabled (even when the debugger is running). So how do I do it (I'm using Visual Studio 2005 Professional Edition) espen Run your application under debugger. Then Debug>W ...Show All
Smart Device Development VisualStudio2005 fails to create SmartDevice MFC apps but works fine with c#
I have VisualStudio 2005 "Standard Edition" and the Windows Mobile 5.0 installed. I can create c# SmartDevice applications fine. I have evc3.0 and evc4.0 installed on my machine too which work fine. When I try to create any C++ Smart Device applications, I get a "Line 4033" "Object Required" "Do you wish to debug" error in my IDE. When I click "Debug" and try to debug in Visual Studio 2005 I notice the following: File : Common.js Function: ConstructClassName Line: var bValid = (window.external.dte.VCLanguageManager.ValidateIdentifier(strCandidate)..... window.external.dte is null. I reinstalled the SDK but no use. Any suggestions I can import eVC 4.0 projects. So I guess the Wi ...Show All
.NET Development Reading SID's, ACE's and DACL's
Im building a tool that will periodically check a directory for a number of things, including the permissions that the 'network service' account has, namely whether it has write & modify access or not. Im new to windows security programming, but im working through an example using the .net framework class wrappers. Some of the code im using is listed below. Questions: - Is the first part of a SID going to be the same for a given user name from machine to machine Code that isnt written yet - im going to loop through the access list until i find the account(s) im interested in and then check their FileSystemRights, which is stored as a "OR'ed" string. Question - Is there a better way to refer to system accounts that ...Show All
Visual Basic Hiding Cells before printing Excel Spreadsheat (BeforePrint)
Greetings... I have several cells in an Excel Spreadsheet that Are normally hidden and locked. If the user types a password into the proper cell and activates a toggle button, the contents of the cells appear. However, I want to make certain that the cells revert to the hidden and locked condition whenever the user wants to print the spreadsheet. I'm using the following code, but it has no effect. What am I missing Private Sub Workbook_BeforePrint(Cancel As Boolean) Range("Password") = "" Range("SwitchShow") = 0 Range("ONOFF") = 0 End Sub ...Show All
Visual C++ N00b wants to manipulate a database with C++ via SQL
Hello, For my study in Econometrics I need to write a program that communicates with a database. The actual SQL-statements that I will use will - as far as I can see at this moment - not be very complicated, but the communication with the database has to be as fast as possible once the program is running (if the start-up time is somewhat higher, this is not a big problem). The SQL statements I need are mostly SELECT statements, but sometimes also other statements are to be used. The emphasis however will be on SELECT-statements. I would also like to work with multiple recordsets, if that is possible (I know it is in Visual Basic). The database itself is quite large, with multiple tables and sometimes over 10,000 of entries within ...Show All
.NET Development Updating a DB and getting an id
Hi, I've a little problem of "speed" I think... I'm writting in a table, and after this, I try to read the ID that is assigned to ne new row in the table.. But I suppose that I read so much faster and the row isn't still wrote. Here is an example: CadenaSQL = "INSERT INTO Modul (Etiq, Num, Tip, idER)" CadenaSQL = CadenaSQL & " VALUES ('" & ER(IndexER).Modul(i).Etiq CadenaSQL = CadenaSQL & "', " & ER(IndexER).Modul(i).Num CadenaSQL = CadenaSQL & ", " & ER(IndexER).Modul(i).Tipusl CadenaSQL = CadenaSQL & ", " & ER(IndexER).idER & ")" If Not ExecuteSQL(CadenaSQL) Then MsgBox("Errorr") End If CadenaSQL = "SELECT idModul FROM ...Show All
Visual Studio Team System Should setting "Deny" permission override Admin priveliges?
I am trying to limit checkin permissions on a certain branch in our source to only the Admin group. I thought the most expedient way to do that would be set the Checkin/Checkout priveliges to "Deny" for the Readers and Contributors group. However, when I do that, the admin group members are being denied access as well. In fact, if I set "Deny" on any permission for a group that an admin belongs to, that Deny permission seems to override the priveliges of the Admin group. According to the documentation here: http://msdn2.microsoft.com/en-us/library/ms252587(VS.80).aspx , I would expect admin group members' priveliges to be unaffected by setting "Deny" for a group to which the admin belongs. Am I misreading the ...Show All
Visual C# Passing Values from Form A to Form B and vice versa!!
Hi all, I'm using Visual C# Express 2005. I have two forms, form A and form B. I can pass values from form A to form B but I can't get the values from form B to form A. Any help would be appreaciated. Thanks in advance!! Hi all, Thanks for all your help. I used the event handler and it work out perfectly for me, now I can pass variables from Form A to Form B and vice versa. It's easy than I thought, especially if you use event handler. Thx for the help guys. Jason!! ...Show All
Visual Studio Start Page not functioning
I logged in as an admin and installed VS Pro 2005 on my machine. Everything looks good and seems to be working properly in the admin account. But when I log in as a standard user, the Start Page's Visual Studio Developer News area shows this message forever: "There is no content available yet. Content will be downloaded once a connection to the internet is established." Why is this I need to use my machine as a non-admin. Does anyone know how to correct this Yes, I see it's mapped to http://go.microsoft.com/fwlink/ linkid=45334&clcid=409 in Tools > Option > Environment > Startup. ...Show All
Visual Studio 2008 (Pre-release) RequestNavigate
Toward the end of the code I have pasted below, there is a CellTemplate with a Hyperlink in it that has a handler for RequestNavigate. My handler does not seem to fire when I click the hyperlink in the UI. Any idea what I might be doing wrong I tried putting the handler on the ListView as well. ============== <Window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' Width="664.8" xmlns:l="clr-namespace:SDKSample" x:Class="SDKSample.Window1"> <Window.Resources> <XmlDataProvider x:Key="MyData" XPath="/Info"> <x:XData> <Info xmlns=""> <Item I ...Show All
