Have you had any luck on tracking this discrepancy down? I continue to have this problem, despite a brief period where I seem to have gotten it working. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
DaveC426913
Posts
-
Windows SDK error message -
.cpp and .h filesThanks, yes. I was opening the wrong type of project. Now I just have to figure out why these two files are is missing. The debugger chokes on includes called wx/wxprec.h and stdafx.h. There is a stdafx.h in a subfolder, but adding it to the project doesn't fix the problem. I'm going to take this over to the C++ forum. Thanks for your help. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002) -- modified at 16:45 Thursday 8th September, 2005
-
.cpp and .h filesForgive my ignorance, I am often given small tasks on projects where I have little experience, and not a lot of time for a learning curve on so short a task. I've been asked to make minor mods to a C program. The files I have are .cpp and .h . This is C, as opposed to C++, correct? And I cannot (at least, not effectively) edit and compile this in Visual Studio? (There is no .sln file and the .cpp and .h files do not show up as 'add existing'-able files.) I'm googling for answers about how I'm going to go about this, but most info out there sort of starts at a lower level of info than I'm looking for. I'll probably be back with more questions when I go to compile and such (like where do I get/put all the class libraries and stuff), so any preemptive help on the 'start-to-end' of a C program is appreciated. Thanks. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
pulling hair outI see Visual Basic code in aspx pages in the examples. Is this not generated from the code window? Also, when I write Visual Basic in the code window, it creates HTML/ASP/VB in the HTML page. Are you saying that if I write everything in the HTML page, there will be nothing (or at least, nothing of consequence) in the codebehind file? I guess I should try this so I understand it better, it just seems like I'm throwing away many of the features of Visual Studio. Is it possible that the relationship between Visual Studio and html pages is equivalent to something like FrontPage and html pages? i.e. Frontpage is easier for designers, but it blows as far as writing clean code. I never use WYSYWIG HTML editors - I always use Homesite (which doesn't mangle code). ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
repeater / datalist minimumWonder why it keeps showing up invisible then. (i.e. no errors of any sort, everything else on the page shows up fine, but the entire datalist or repeater is just not there at all.) Anyway, I followed an example at MSDN very carefully, and I've got something showing up now. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
pulling hair outForgive me if this is turning into a .NET tutorial, but it is very helpful to me... So, does that mean all your code is on the .ASP page, not in the codebehind page? Is there *anything* on the codebehind page? I confess I am confused about the relationship between the ASP page and the codebehind page in terms of what exists on each. I tried mapping one to the other, but some parts are there and some aren't. Is it possible to code ASP.NET pages without any need for a codebehind page? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
boolean in SQL"You do have to convert it into a string, it's a string because it's part of cmd, which is a string." Did you mean *I do* or *I do not* have to? "What does cmd look like in the debugger in the first instance ?" It doesn't. It chokes trying to parse that line of code. This isn't a db problem, it's a VB problem. "What's the type of the Archive column in the database ?" Sorry, it is bit. "If you go into Query Analyser, what changes do you need to make to the string in cmd in the first instance, for it to work?" Well, I have to change T/F to 1/0, which is what I'm doing. Which brings me back to my question: why am I bothering to Dimension it as boolean? A thought: Should my structure have a get/set that automatically converts between T/F and 0/1? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002) -- modified at 9:13 Wednesday 7th September, 2005
-
pulling hair out"OleDbConnect and SqlConnect aren't part of the .NET Base Class Library or ADO.NET. Where did these come from?" They are controls available to me it VS.NET when I am designing ASP.NET or VB.NET apps, and used in the tutorials and samples I'm reading in these ASP.NET and VB.NET books and at MSDN. I'm sure if I read the books and MSDN website page by page, it will explain the difference. I guess I can't just presume that prior VB and ASP knowledge would have saved me from this confusion. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
boolean in SQLWhat is wrong with this code?
Structure PP Public Name As String Public Archive As **Boolean** End Structure Public Sub Inst() Dim AddPP As New PP With AddPP .Name = txtPPName.Text **.Archive = True** End With cmd = "INSERT INTO Pub_Points (PPName,Archive) VALUES ('" + AddPP.Name + "'," + **AddPP.Archive** + ")" End Sub
It chokes with 'System.FormatException: Input string was not in a correct format.' This is my current kluge:cmd = "INSERT INTO Pub_Points (PPName,Archive) VALUES ('" + AddPP.Name + "'," " + **CInt(AddPP.Archive).ToString** + ")"
But what is the point in defining a property as boolean if I have to convert it back to string to use it? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002) -- modified at 17:20 Tuesday 6th September, 2005 -
pulling hair outArg. OK, I'm giving up on all the OledbConnect and SQLConnect examples, and sticking with ADO. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
repeater / datalist minimumWhat are the minimum properties to set and code required to get a repeater or datalist ('lookless' controls) to show up? I follow the examples in the book as best I can, considering I'm using a different database, but they still show up invisible. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
Repeater or DataList minimumWhat are the minimum properties to set and code required to get a repeater or datalist ('lookless' controls) to show up? I follow the examples in the book as best I can, considering I'm using a different database, but they still show up invisible. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
pulling hair outI think I am going nuts over this .NET thing. As far as I can tell, the MSDN documentation is just wrong. There is no such thing as a listbox.refresh method, nor is there such a thing as a listbox.multicolumns property, as just two examples. The docs say there is, but VS.NET gives me a compile error. I have this wretched,sinking feeling that my confusion lies in the difference between ASP.NET programming and Visual Basic.NET programming. Is it possible that listobx behaves two completely different ways in each? Is it possible that MSDN doesn't bother to clarify the language context of its instructions? Is it possible that not being able to filter results for one vs. the other (VB.NET vs. ASP.NET) in searches is an awful idea? I am very frustrated. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
'Type' to 'Structure' helpTwo servers: one web, one media. Different domains. I could set them up in the same domain if you think thast would make things easier. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
'Type' to 'Structure' helpThe code is copied verbatim from the microsoft site: http://msdn.microsoft.com/library/en-us/wmsrvsdk/htm/creatingaspserverobj.asp?frame=true --- // Create a remote WMSServer object from a System.Type object and // the CreateObject method. Type tServerType = Type.GetTypeFromProgID("WMSServer.Server", "remote_server_name"); WMSServer wms = (WMSSServer)Server.CreateObject(tServerType); // Create a remote WMSServer object from a System.Type object and a // System.Activator object. Type tServerType = Type.GetTypeFromProgID("WMSServer.Server", "remote_server_name"); WMSServer wms = (WMSServer)Activator.CreateInstance(tServerType); --- (I realize this is ASP. I am confounded at the interplay between VB froms and ASP pages and the code on each. Half the samples I want are in ASP and half are in VB, and frankly I don't understand how the two work together in Visual Studio.) In VB, a sample looks like this: --- Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Dim tServerType As Type Dim RemoteServer As WMSServer Try tServerType = Type.GetTypeFromProgID("WMSServer.Server", "server_name") ' Create an instance of the remote server object locally. RemoteServer = Activator.CreateInstance(tServerType) --- but, no matter WHAT I try, I get 'access denied'. I have been configuring my systems for 5 days now. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
'Type' to 'Structure' helpAgh! My sample code uses 'Type', but VS.NET tells me it is no longer supported - I am to use 'Structure' instead. So I need help converting this from type to structure: Type tServerType = Type.GetTypeFromProgID("WMSServer.Server", ); Help? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
GetTypeFromProgID / GetTypeFromCLSID won't create remote objectI don't get what I'm missing. This code throws an 'Access denied' exception (not a COMException): Dim RemoteServer As WMSServer tServerType = Type.GetTypeFromProgID("WMSServer.Server", <remote server>, True) So I tried this code, but it throws a 'Class not registered' COMException Dim WMSGuid As New Guid("{A2EFA5CB-3B0E-11D2-9EFD-006097D2D7CF}") tServerType = Type.GetTypeFromCLSID(WMSGuid, <remote server>, True) I'm pretty sure I've got the permissions and User IDs set up, and I've registered WMSServicesTypeLib.dll. Is there something more I should be doing? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002) -- modified at 13:20 Tuesday 30th August, 2005
-
Really struggling with GetTypeFromProgID"What the error says is that the component isn't registered on your computer. Not as implementation nor as proxy. You need to investigate further on that." Would that be on the server wherer the service is, or on the client where the app is running? It's got to be registered somehow - it is already in use when I started developing on these boxes. ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
Really struggling with GetTypeFromProgIDI'm pretty green with this stuff. I am using DCOM, yes. I am developing on the client machine right now, so I would expect that, yes, they are registered. "WMSServer.Server" is an invalid ProgID. Should it be the GUID? ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)
-
Really struggling with GetTypeFromProgIDTrying to get a VB app to run Windows Media Services on a remote machine. This code tServerType = Type.GetTypeFromProgID("WMSServer.Server", , True) generates this error System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string at System.RuntimeType.GetTypeFromProgIDImpl(String progID, String server, Boolean throwOnError) at System.Type.GetTypeFromProgID(String progID, String server, Boolean throwOnError) I really need help with how to configure my local and my remote machine to talk to each other. HELP!! ________________________________________________________________________ Dave Y10K bug! Let's not get caught with our pants down **AGAIN**! (DC 02002)