DanR1's Q&A profile
Visual C++ tcscpy_s Assert with no useable stack trace
I am porting a unix app to VC++ and now I have got all the libraries to compile the application is asserting in tcscpy.inl with the message Expression: (L"Buffer is too small" && 0). When I break on this line there call stack does not show where in my code this call has originiated. I am not calling tcscpy_s any where in the code but the call stack indicates the original call was strcpy_s. The output window tells me the exe was built without debug information "Binary was not built with debug information." but it is compiled with the /ZI option. I have tried rebuilding with the /Zi flag Does anybody have any ideas why the IDE thinks I have no debug information I have tried commenting out al ...Show All
Visual Basic ADO, VB and crosstab query
Hi, well I'm using VB and Access as the db. I have made a crosstab query in Access and it's work well, but when I do the same in VB through ADO (not the control) it doesn't work. I've just copied the SQL sentence as appear in Access to VB as something like: dim rs as ADODB.Recordset str_sql = "crosstab query" ' this is the SQL sentence as appear in Access ' conn is a ADODB.Connection already set Call rs.Open(str_sql, conn, adOpenStatic, adLockOptimistic) ' I've tried with adOpenDynamic too, but I haven't gotten the correct result When I run that, the result is not that in Access is, the result with ADO and VB give me only 3 fields -columns- (in Access are about 120 fields), I mean VB and ...Show All
Visual Studio 2008 (Pre-release) Unable to generate the output.config file
Hi, I am not able to generate the output.config, when give this command on the client machine. svcutil.exe http://sree.sce.uhcl.edu/certi/service.svc wsdl I get the following ,message C:\Program Files\Microsoft SDKs\Windows\v1.0>svcutil.exe http://sree.sce.uhcl.ed u/certi/service.svc wsdl Microsoft (R) Service Model Metadata Tool [Microsoftr .NET Framework, Version 3.0.3906.22] Copyright (c) Microsoft Corporation. All rights reserved. Attempting to download metadata from 'http://sree.sce.uhcl.edu/certi/service.svc wsdl' using WS-Metadata Exchange or DISCO. Warning: Unable to import wsdl:binding Detail: The following Policy Assertions were not Imported: XPath://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsd ...Show All
Software Development for Windows Vista Winqual site down?
hey folks Trying to sign up to the winqual program but no joy.. https://winqual.microsoft.com/member/SoftwareLogo/ Service Unavailable Is this a known problem or have they just been utterly swamped.. Hello MGreen, As a follow up to this, we have checked with WinQual and the issue you have reported should now be fixed, if you run into the same or any other errors, please report them to https://winqual.microsoft.com/help/default.htm#Contact_Us.htm so the WinQual team can correct them as quickly as possible. Thanks! Matthew Braun ...Show All
Software Development for Windows Vista Windows media streaming from direct show graph
Hello, I'am searching for a possibility to stream my audio signal directly from my DirectShow graph with the windows media codec. So I need a renderer filter which gets PCM data and do all the streaming stuff. Has Microsoft such a filter If not, is there a possibility to use the WMA encoder filter and do the streaming myself (I have already code to stream MP3 data to an Shoutcast server). What protocol is used how looks the commication between client and server. Any docs available Thanks for your help Reiner Hello, thanks for your answer! So you use ASF writer to generate ASF encapsulation. Can the ASF writer handle the streaming, or do you write a file in the background and read it back with an other to ...Show All
Windows Forms Reg - Building a presentation table for a datagrid
hi, We have a third party data grid to display data. The datasource is a table, we call it as presentation table It has an universal ID as orimary key. The presentation table is dynamically built based on users preferences. The user can decide what data points he wants to see. The data for the presentation table comes from multiple tables say t1, t2, t3 and so on. Say column c1 comes from t1, c2 from t2 and so on. If the user chooses to see c1 and c5, we create a presentation table and add new columns similar to c1 and c5. Then copy data from t1 and t2 of the respective columns to the presentation table and display it to the user. All t1, t2 have universalID as primary key.This is the overall outline. This logic works p ...Show All
Visual Studio Express Editions How to search text in a file?
How to search a word in a text file and after that to get the line that contains that word. Regex is expensive to use and should really only be used when you are doing a constant search on specific words or patterns however as suggested, you can use the indexOf method to check the value exists. example: .. string currentLine = theStreamReader.ReadLine(); if (currentLine.IndexOf(someString) != -1) { //do stuff } ...Show All
Visual Studio Express Editions Adding numbers in textboxes together
I have 5 textboxes on my form. When the user presses 'Enter" (Total_Enter event ) I want my program to add the textboxes together, sometimes only 1 or 2 of the boxes will have data entered in them - how can I code it so that it checks the 1st textbox to see if there is anything there if so it adds, if not it moves on to check the next textbox etc. I think I will have to use an If/Else statement something like: If Textbox1.Text=True Then Totalstextbox.Text=Str(Val(TotalsTextbox.text+Textbox1.text) Else If Textbox.Text="" Then This is where I get stuck - Im not really sure if the above is quite correct or if im doing this completely wrong, Any help really appreciated ...Show All
SQL Server a text file data source
I would know how to create a report which has as data source a text file someone can help me Hi Maaloul- To retrieve data directly from a text file, you would need to implement your own custom data extension. A sample data extension can be found here: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=B8468707-56EF-4864-AC51-D83FC3273FE5 -Jon ...Show All
Windows Networking Development Identifying WiFi Access Points
I am looking for a command line application or programmatic solution that lists the essid and mac addresses of the wireless access points in range. I have tried many of the examples off of the internet, yet none of them seem to output the proper information after XP SP2 update. It seems that wmic may assist in this, but its unclear. There are a few libraries available, but all of them require the user to disable the zeroconf service. I am willing to work in any language, so long as it prints to standard output, not a GUI. Java is preferred. Does anyone have any suggestions for how to go about this This forum is dedicated to questions relating to the Winsock Kernel programming interface. Please see http://w ...Show All
Visual Studio Express Editions Newbie xp icon look buttons
Hi,what i am trying to do is to have a button on my form look like a xp style desktop icon. Nice looking without any background color. i also want to display a picture without any background when i click the button. What i did was to add an imagelist to my form. i added a button, set the flatstyle property to flat and changed the backcolor to transparent. i selected the image from the imagelist, it is an ico then i set the size of the image to 32,32 my problem is the image does not look nice and sharp like the desktop icon,it is the same ico file. what do i need to do to make it look nice and sharp like xp or vista. i also want to bring up an image that has no background color similar to the way a desktop icon ...Show All
Visual C++ Please advice on this error message
Hi guys, I have this error saying: The instruction at "0x00408498" referenced memory at "0x00000000". The memory could not be "written". Could someone who have experience the same error share their methods in solving this problem Thank you! I have attached the screenshot here: The problem is I got this error message in my campus's computer but not in my house laptop. Weird~ This is the part near when Im thrown out of the program with the above error: int graymaxpix; graymaxpix=width*height*3; int *value; value=( int *)malloc(graymaxpix* sizeof ( int )); int H[25]; int range; int *ptr; ptr=H; for (range=0; range <= 25; range++) H[range]=0; ...Show All
.NET Development sqlcommand.execution - multiple result (2-insert and 1-Select)?
Hi, I have sql statment something like this string sql = "Insert into table1 values('abc',100);Select * from table1;Insert into table1 values('xyz',200);"; when I execute this sql in sqlcommand using ExecuteNonQuery, the result is 2 (Total Insert) When I execute this sql in SqlAdapter using fill, the result is dataset is filled by select * from table1. But I would like to have one execution which will return 2(number of insert (in order of insert exeuction) and dataset for select statement. What I understand from the execution is that It executes all sql which is there in commandtext, but it returns based on your exeuction method. So is there anyway I can get all result in one exeuction Thanks. ...Show All
Visual Basic email to send in html format !
I have to use only visual basic 6. Want to send email in html format. Any code please These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb.general.discussion&lang=en&cr=US or the VB6 resource center http://msdn.microsoft.com/vbrun/ or web sites such as www.vbcity.com Hope these point you in the right direction. You can of course download VB Express which is free and then send an email (a simple search on this forum for email) will reveal numerous postings with code to achieve this in .NET - to send HTML format is simple. The body element can be coded as a ...Show All
Visual Studio Team System TFSService Account Getting Locked
I apologize if this has been asked and answered before, but I couldn't find anything on the forums... My TFSService domain account keeps getting locked and I'm not sure why. No one is attempting to log in with the account and it has the "Password never expires" option set. When the network admins unlock it, everything seems to work fine for a while, then I'll start getting errors, which means that it's been locked again. I'm not a network admin by any means and I don't have direct access to managing the Active Directory but the admins tell me everything is setup for the user based on the TFS installation guide. Any ideas would be helpful. Right - my guess would be something similar, ...Show All
