Anu Beniwal's Q&A profile
.NET Development Any CPU and Managed C++
I have a C# smart client built using “Any CPU”, the application references a managed C++ assembly that I’ve compiled into both x86 and x64 dlls. Is there any way to redirect the assembly loader to load the correct dll given the client’s platform (apart from manually) Is there any way to configure ClickOnce to deploy the correct dll thanks, rich richmtl wrote: I have a C# smart client built using “Any CPU”, the application references a managed C++ assembly that I’ve compiled into both x86 and x64 dlls. Is there any way to redirect the assembly loader to load the correct dll given the client’s platform (apart from manually) Is there any way to configure ClickOnce to deploy the correct dll ...Show All
Visual C# Is there a checksum class in Windows forms c# development?
I'm trying to use checksum to compare data Is there any checksum tool/class I can use from windows forms Thanks. Enkh. There are 2 classes in System.Security.Cryptography, MD5 and SHA1 these classes are used to computer hash and varify it on some data. RSACryptoServiceProvider can also be used in the same namespace. Best Regards, ...Show All
Microsoft ISV Community Center Forums How do I make search work? SP2007B2TR
I have gotten far enough the search box is appearing on my site, however I never get any results from search. Is there a guide out there that goes step by step on how to correctly configure search Short of a guide, how can I just finish my process and get search results showing up ...Show All
Visual Basic Obtaining latest messages from a Chat server, need help
I am trying to obtian messages from a chat server over UDP. It has to be periodic otherwise messages will get lost. My current code is: Dim udpClient As New Net.Sockets.UdpClient() udpClient.Connect( "ccdc.kick-ass.org" , 1079) Dim RemoteIpEndPoint As New Net.IPEndPoint(System.Net.IPAddress.Any, 1079) Dim receiveBytes As [Byte]() = udpClient.Receive(RemoteIpEndPoint) Dim returnData As String = System.Text.Encoding.ASCII.GetString(receiveBytes) TextBox2.Text = TextBox2.Text + returnData.ToString() udpClient.Close() Exit Sub In a timer control. I have two problems with this: This checks every 500milliseconds, which may tie up an internet connection. It crashes instantly ...Show All
Windows Forms Unable to continue. The application is improperly formatted
I have a big problem with installing a ClickOnce application. I publish the application on the share and I get following error message box if I want to install my ClickOnce application over Publish.htm or directly over setup.exe. Unable to continue. The application is improperly formatted If I open the detail file, I get a lot of descriptions. One description is maybe important: the manifest could be invalid or the file could not be opened. Somethink is very interesting: I use two accounts. By first account I don’t have problem to install and run my ClickOnce application, but by second account I get this message! But it’s not only the share problem, if I publish the application on localhost (my C:), then I have the s ...Show All
Audio and Video Development iHDSim catastrophic failure
Just wanted to report a strange bahaviour of iHDSim when having specified multiple audio languages for a title. WORKING: <TrackNavigationList> <VideoTrack track="1" /> <AudioTrack track="1" langcode="en:00" description="English 2.0" /> <AudioTrack track="2" langcode="de:00" description="German 2.0" /> </TrackNavigationList> NOT WORKING: <TrackNavigationList> <VideoTrack track="1" /> <AudioTrack track="1" langcode="de:00" description="German 2.0" /> <AudioTrack track="2" langcode="en:00" description="English 2.0" / ...Show All
SQL Server Truncate Logfile
Dear all, I am using SAP with MSSQl 2005. My transaction logfile is full. I took backup of transaction logfile and it should be truncated and shrink after the backup, but it did nothing. There is no error but the file size remain same. I tried from SQL server management studio selecting database--right click--shrink--file. Then i try to release unused space, shrink, but not worked. I also checked these steps while the SAP system was stopped. Can anyone guide me what to do now Thanks Imran Hasware Log truncation and shrink file are two different things. Truncating the log does not usually result in shrinking the log file, it will remain the same size. If you are really unable to truncate ...Show All
Visual Studio Express Editions visual basic 2005 command prompt help..
O.k i have been looking around and still have not been able to find the answer. what i am looking for is the code that will send a command to dos prompt or cmd and execute it. You know like ipconfig iprelease / renew or netstat -a this way you dont have to go and type all this long stuff out everytime you need to release your ip or your trying to configure a network. I looked at your post. Nice Work. I thought I understood the thread starters question and answered it fairly well. I had no idea he was trying to open an app as a child of his form. Thanks for the clarity. ...Show All
SQL Server Pass value of report parameter from URL
Hello I have an ASP.NET application where I can filter data from an SQL DB by certain criterias. Users are now also able to click on a link which redirects them directly to the SQL Server Reporting Services application. What I'd like to have is a possibility to pass an object (as string) from my ASP.NET app to the textbox of the search criteria from the Reporting Services app. Example: - ASP.NET appl.: The user selected a FileId=84 -> then he clicks on the hyperlink to the SQL RS - The SQL RS appl. opens and the textbox FileId is filled with "84" it of course isn't a problem to pass the FileId to the hyperlink the user clicks on, but is it possible that the SQL RS appl. can somehow read it from the URL and pass it to the textb ...Show All
Visual Studio Team System Ignoring system tables and procedures
Is there a way to not import system tables and procedures into a project I believe when the source database you are importing from has the option for system tables and procedures to not be viewed they don't import. Since we are trying to import from our production environment we don't have permissions to change these settings. Also going through and selecting all the system tables and procedures to be skipped is a pain, so maybe giving an option like Ctrl click to click mutiple objects to skip, or shift click to select most of a list, or just anything so you can skip multiple objects more easily. I am importing from a 2000 database into a 2005 project. I guess they look like tables and procedures that ...Show All
Visual Basic I need a delay in visual basic program
I am writing a visual basic program that display the file from a directory in a list box the app has a button which calls routines to 1. delete files in the directory 2.put some files in the directory 3. get the file info from directory and add file names to a list box here is code for step 3 my sub My .Computer.FileSystem.CurrentDirectory = "C:\mtmp" ' Create a reference to the current directory. Dim di As New DirectoryInfo(Environment.CurrentDirectory) ' Create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() Dim fiTemp As FileInfo For Each fiTemp In fi ListBox1.Items.Add(fiTemp.Name) Next fiTemp end sub ...Show All
Visual Basic My BMP to JPG program.
This is going to be my new push for a finished project that does something usefull, but I need help getting started first. I have everything basic down, such as the buttons and menustrip. So far, I have added the openfile feature and it displays your image in an image box. I need to know how to convert the bmp file to a jpg file and have it ready for saving. Thanks in advance. Public Class Form1 Private myImage As Bitmap Private newJPGname As String Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim OpenFileDialog1 As New OpenFileDialog OpenFileDialog1.Filter = "Bitmap Image(*.BMP)|*.b ...Show All
Microsoft ISV Community Center Forums Help with a formula
I need to write a formula for Excel that calculates the amount of fuel that is in a tank. Here is what it is for. We have cylinder tanks that lay horizontaly. Each month we put a dipstick into the tank to measure how many inches of fuel is left in the tank. I need a formula that will take that and calculate it into gallons. Here is the formula I have to work with. / -1 r - h \ V = L * | [ r^2 * cos (--------)] - [sqrt(2rh - h^2) * (r - h)] | \ r / Any Help is appreciated (BTW I am not the best at math so if possible an explination of this formula would be greatly appreciated) Hey man, The ...Show All
Visual Studio Express Editions Wizard generated code running under a transaction.
Hello people! Please I was wondering if is there any way to use transactions with the code generated by VB 2005 Express Edition Wizards. What I mean is, suppose I have a wizard generated data set called MyStoreSales and whithin it I have (an also wizard generated) table adapter called ClientsTableAdapter. I also created a very simple SQL command which removes an specific client from the table. I've created this SQL command with the wizard (right mouse button on table adapter -> Add Query...) then the wizard generated a new method for me (RemoveClient) into the ClientsTableAdapter. Now, is there any way to execute this method (RemoveClient) under a transaction I've tried the following: 1 Dim tx As Data.SqlClient.SqlTran ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Maker Studio .Net
Howdy, It is time for me to show you all my little toy. Game Maker Studio .Net (GMS.net) is still in early development and I am doing most of the work myself of my days off. The aim of GMS.net is to build an Editor, Engine and Framework based on XNA, and .Net Framework that specializes in building 2d RPGs and RTSs. So why would you be interested in GMS.net … Well if you don’t like RPGs or RTS then you will not be interested. On the other hand this set of tools will greatly improve your productivity if you are interested in build this type of game. Think of it as GSE on steroids! You still use all the great features of XNA, the Content Pipeline, a Visual Studio friendly environment, support for C#.net or VB.net devel ...Show All
