José Antonio Farias - MVP's Q&A profile
Visual C++ The "missing type specifier - int assumed" compiler error (C4430)
Trying to migrate a VC++ 6.0 project to Visual C++ 2005 express. I think things are going okay but this one compiler error is something that I've just got hung up on, does this mean that I HAVE to declare return type for all my functions in this version - that the compiler wont make the return type int if I dont specify one Im guessing this is some new part of the ISO C++ that I have just missed. It's not a difficult error to fix - but it is annoying and stupid, is there no way to work around this Cant I change some option on the compiler to make it work like my old one does /Jimmie I'd really like to now that too. It's a real hazzard getting Directshow to work these days. After a lot of searching the Directshow SD ...Show All
Smart Device Development runtime error when creating new VC++ smart device app
I am using VS2005 version 8.0.50727.42. I notice in the New Project selection the Smart Device selection for Visual C++ does not have selections for "Pocket PC 2003, Smartphone 2003, Windows CE 5.0 and Windows Mobile 5.0" These selections are available for "Other Languages" like Visual Basic, Visual C#, and Visual J#. When I try to create a new project in Visual C++ and select "MFC Smart Device Application" and hit "OK", I get "Runtime Error", this is what the error dialog said: A Runtime Error has occurred. Do you wish to Debug Line: 4033 Error: Object required Anyone have this problem I found my answer in http://forums.microsoft.com ...Show All
Visual Studio Express Editions Read a "word" from a line of text
How can I read a textline and pick up a word that is being placed between parentheses So far, I am able to read the line character by character until I reach the 1st parenthesis "(" but I am having difficulty extracting or assigning to a variable all following characters until I reach the 2nd parenthesis ")". Here's one way Dim textLine As String textLine = Console.ReadLine() Dim index As Integer = 0 Dim leftIndex As Integer Dim rightIndex As Integer While (index < textLine.Length) ' find first left parentheses from index onwards leftIndex = textLine.IndexOf( "(" , index) If leftIndex < 0 Then ' no mo ...Show All
.NET Development how to build selectCommandText for OleDbDataAdapter when filepath has a space in it?
I have a method that returns a DataTable based on the contents of a CSV file. There are times when the filepath to the csv file is going to have spaces in it and I am having a problem accommodating that case when I build the selectCommandText string for the OleDbDataAdapter constructor. Given my method: public static DataTable GetDataTableFromFile( string dataFile){ try { StringBuilder sb = new StringBuilder ( "SELECT * FROM " ); sb.Append(System.IO. Path .GetFullPath(dataFile)); OleDbConnection conn; conn = new OleDbConnection (( "Provider=Microsoft.Jet.OleDb.4.0; Data Source =." + "; Extended Properties = \"Text;HDR=YES;FMT=Delimited\"" )) ...Show All
Visual Studio Express Editions How can I insert my program to the msconfig startup list?
Hi, I want that the user will run my program ones and then the program will run automatically when the user is turn on the computer. How can I force that my program will start before other program that in the list(when the computer start) If I can run my program automatically only 1 restart Best Regards, Yaniv Pinhas open registry editor using start>run and type regedit (this u might be knowing but still) go to HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run create a new string value and name as the name of ur software and enter its value as the location of ur software u can do this similarly in HKEY_LOCAL_MACHINE if u ...Show All
Visual C++ inline assembly functions
Hello, either I am missing some small stupid thing or there is an interesting bug in the way Visual C++ 2005 passes parameters to a function. Any help would be wonderful ^^. The following is the code I have at the moment. It simply reads in 3 values and sorts them least to greatest. According to what i know of how variables are passed in a function call, the top of the stack should have the return address followed by the variables passed to the function. When I do this however the passed in values and the top of the stack are several hundred bytes away from eachother seperated by junk 0xCC word values. #include <iostream> using namespace std; void asmSortThree( int& , int& , int& ); void main() ...Show All
Windows Forms datagridview vertical scroll bar
Is there a way to make the vertical scroll bar always show in a datagridview I know it's possible with datagrids through datagridtablestyles, but havn't been able to find anything comperable with datagridview. Thanks in advance. since i couldn't find a way to do it, i made the columns fill the window and they just decrease if there's a vertical scroll bar, this at the least prevents a horizontal scroll bar. ...Show All
.NET Development Trying to send a mail via SMTP in VB 2005 - Authorization problem
Hey guys, this is the first time a try to get help from a forum with alot of experts... But i can't handle the problem alone... I try to write a program which sends mails from the users computer but over my account to me... so to the same account.. sound weird i know.. First: The provide is using port 587 Seconde: I need to enter the auhorization, but i don't know how. Here is the code i'm using so far: Imports System.Web.Mail Public Class frmmain Inherits System.Windows.Forms.Form Private Sub frmmain_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim oMail As New MailMessage() Me .Show() SmtpMail.SmtpServer = "smtp.mail.yahoo.de" With oMail .From = "*** ...Show All
SQL Server Web based Data Mining Query... Installation issue..
Hey gang, I have ran into an installation issue that has been bugging me all weekend. I'm trying to run the preditive analytics query from a web based application (ASP.NET). I have installed a data pump as directed by this article "Configuring HTTP Access to SQL Server 2005 Analysis Services on Microsoft Windows Server 2003" because this isn't set up under a domain. I also set appropriate roles in Data Mining Database (set it to everyone for testing purpose). ConnectionString is "MSOLAP.3;Persist Security Info=True;Data Source=http://1.0.0.1/olap/msmdpump.dll;Initial Catalog=DataMiningDB" Try Dim connection As AdomdConnection = Me.Connect Dim command As New AdomdCommand(txtQuery, connection) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Architecture
Hello! I wounder if u have some good information about DirectX Architecture (DirectX 9) and so on.. I shall write a school work about the Architecture behind DirectX.. can u help me Thanks alot in advance The main sources are the SDK: http://msdn.microsoft.com/library/ url=/library/en-us/directx9_c/directx_sdk.asp The WDK: http://msdn.microsoft.com/library/en-us/Display_d/hh/Display_d/GRDesGde_adffbe1d-e845-4e5a-b840-f878f159e401.xml.asp frame=true Windows Hardware Developer Central: http://www.microsoft.com/whdc/device/display/default.mspx You may find this Channel 9 Video interesting too: http://channel9.msdn.com/ShowPost.aspx PostID=98990#98990 ...Show All
Windows Live Developer Forums MSN Activity and external content
Hi, I seem to remember reading somewhere that content in the activity window can only originate from the domain where the activity comes from (probably for security reasons). However I can't find any info about that in this forum. Also in a demo i have running in which a have defined an activity in the msgrp2p.xml i can display all kinds of info from many different domains. Am i mistaken in the assumption that content can only originate from the original domain or am i missing something thanx for any help. Hi, Is this security feature still in place I does not appear to be. Last week I was making some adjustments to an existing and provisioned activity. I noticed that I could show content from di ...Show All
SQL Server how to generate as "enter" function in SQLSERVER?
For example: select 'sp_refreshview ''' + [name] +''' go ' from Sysobjects where xtype='v' order by [name] I want the result is follow: sp_refreshview 'lt.trxdetai' go sp_refreshview 'ps_account' go thanks You can do below and use the text mode output. There is no need to put CR and LF. select 'exec sp_refreshview ''' + [name] +''';' from sysobjects where xtype='v' order by [name] If you need to generate the call as different batches then simply add a CR & LF as part of the string itself like: select 'exec sp_refreshview ''' + [name] +''' go ' from sysobjects where xtype='v' order by [name] ...Show All
SQL Server CLR Stored Proc Queue activation help
I set up a queue to activate a clr stored procedure upon receiving a message and nothing is happening. I have tried everything listed in this topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=200684&SiteID=1 except for saying "Recieve Top(0)" which didn't make any sense to me. I have set the database to trustworthy (all of this is taking place within a single database on a local server). There are messages on the queue, and I have the queue activation set to max_queue_readers=2, procedure_name=StoredProcedure1, execute as owner. I tried execute as self and that didn't work either. I signed the assembly that contains StoredProcedure1 and the assembly that it references. The only thing that appears in the sql e ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Pipeline
Hi, I haven't really used the Content Pipeline seriously yet but I've seen the official tutorials on it and understand them. Now, I'm thinking - what if I want to load a certain model/effect or anything else that the Content Pipeline supports - BUT I want to load it dynamically/at run-time, e.g. I have a certain filename that my code wants to use to load content, but I don't know it until runtime. Is there some sort of dynamic way of using what otherwise seems to be a static Content Pipeline Thanks... CodePfo or anyone else - sorry to ask you again, but I'm really not quite sure . Probably because I'm quite a beginner with this content pipeline idea, but a semi-detailed outline of how to make a system w ...Show All
Software Development for Windows Vista i need .Net Framework 3.0 in my web server
i have a web site and i want to use card space to authenticate users, but i host my web site in external hosting company, my question is if i want to use card space does i need to install framework 3.0 in the web server. which running framework 2.0 now . I believe so since cardspace is in .NET 3.0 http://www.netfx3.com/ http://cardspace.netfx3.com/ ...Show All
