Software Development Network Logo
  • Microsoft ISV
  • SQL Server
  • Windows Forms
  • Visual Studio
  • Windows Vista
  • Visual C++
  • Game Technologies
  • Visual FoxPro
  • .NET Development
  • IE Development
  • Visual C#
  • Audio and Video
  • VS Team System
  • Visual Basic
  • SharePoint Products

Software Development Network >> Andrew Mayorov's Q&A profile

Andrew Mayorov

Member List

JUANCARLOSR
Wabnuts
pdianne
vtortola
dr.acv
jdt1234
R.Tutus
Tamiri
sharpMoon
naiad
mastermind1429
Thiago Guimarães
cynthia sheridan
prad_kav
Kardi
Scotty12105
talraviv
Bill_W
dreadjr
rkslatha
Only Title

Andrew Mayorov's Q&A profile

  • Visual C++ Life is a box of bitter cyanide pills!!!

    #include <stdio.h> #include <stdlib.h>   int main( void ) {         unsigned __int64 Oneline;         char buf[ 7];         FILE *fptr;           if (( fptr = fopen ( "test.jpg" , "rb" ) ) == NULL ){             printf ( "Cannot open file\n" );             exit ( 1 );       }             fread ( buf, 1, sizeof (buf), fptr ); //    &nb ...Show All

  • Smart Device Development Error 183 vb 2003 Compact framework

    Hi I have been working on a project and once completed I went to deploy it. I built the cabs, tried installing and the program would not work. I then tried to deploy via studio as if I was debugging and got a message box with #183:. Nothing came after the 183, so I tried to run the app on the device and this time I got a message box with nothing more than: Exception. I then started putting in message boxes and discovered than the program will error out only when it tried to load an image, all forms without images work fine, but those with images do not work The project is quite large and has been working fine until now. The last few weeks have been spent testing and debugging with only minor changes. It is written in VB and uses S ...Show All

  • Windows Forms Form size changes in design mode

    Everytime i open a form from the designer .. it changes it's size ... it's growing ... Everytime! if i open it a lot of time consecutively ... it will grow bigger and bigger ... Is it possible you have somehow some code included in your form_load or other form event which should change the size of your form if so, enclose this code with: if not me.designmode then 'Code or reference to method to change form size end if This prevents the code to be processed when loading the form in the design mode... just a hunch though, hope it helps... ...Show All

  • Windows Forms Image inside DataGridViewComboBoxCell

    Hi, Is is possible for DataGridViewComboBoxCell to display a list of images Thanks D you mean something like this Public Class Form1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim cboColumn As DataGridViewComboBoxColumn cboColumn = New DataGridViewComboBoxColumn With cboColumn .Name = "Color" .Items.Add("Red") .Items.Add("Blue") .Items.Add("Green") End With Me .DataGridView1.Columns.Add(cboColumn) Dim txtColumn As DataGridViewTextBoxColumn txtColumn = New DataGridViewTextBoxColumn With txtColumn .Name = "Description" ...Show All

  • Windows Search Technologies WDS 2.6.5 build 5378 searching inop

    Hi, My original postwas removed (mainly because I didn't respond in a timely fashion) so here is my reply to Paul Nystrom's post. I will also include Paul's reply & my original post for reference.. Paul, Thanks for your attention. I had previously not had WDS installed and installed 2.6.5 build 5378 straight away. I did try uninstalling and installing it to no avail. It is interesting to note that the MSN desktop search toolbar does work. I am running Windows XP Professional SP2 on the machine in question. I tried WDS before and after installing Symantec Corporate Anti-Virus. I run no spyware blockers and IE is 6.0.2900.2180. If there is anything else I can do please drop me a reply and I should now get the alert. Hope ...Show All

  • SQL Server XML Task inside Foreach Container, fails all iterations after first failure

    I am looping through xml files and validating them with the XML Task. On sucess I want to perform task 2, on failure I want to perform task 3. When one file fails to validate all subsequent tasks fail. I have also tried putting the result in a variable instead of using the success constraint. I get the same result, the variable keeps the failed value after the first file fails. Any advise is greatly appreciated. Yes I'm using XSD validation, and the source is a fileconnection. The fileconnection is using a variable from the foreach loop with the full file path. Thanks for the questions, any ideas are much appreciated. ...Show All

  • Visual C# Problem with InternalsVisibleTo attibute for Friend assemblies

    I want to use this to make a strong-named assembly's internals visible to my unit test assembly, but I am getting this error as soon as the unit test is compiled with code that accesses the internals: Friend access was granted to 'Platform.Common.Tests.MBUnit, PublicKey=0024000004800000940000000602000000240000525341310004000001000100F50572916E334B04400DB3A65217E76A09ED6049FF6853CAF564E00FAEE2C851841372D6536ADC933CB6DF7B244CBAA2F59B7CF23F8CFE0A232F3DCF5FB479CE5644654DDFF2E94EAA1F58603D4BDB47376A170BDB3E9AE2EA5B05D3CC64A7AAB03EB3D53DA5DFFE888D771E1F0387F8C0BA5ADBF0DD8CC3414FBD7B1E24C7E0', but the output assembly is named 'Platform.Common.Tests.MBUnit, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Try adding a reference to 'Platf ...Show All

  • Visual FoxPro Cannot execute program outside VFP9 IDE.

    I have built my VFP9 application into both .app and .exe files and when I execute them, the VFP9 IDE starts up and runs the program inside of the VFP9 programming environment. As a result I cannot see how the program behaves on its own as if it were installed on a client's machine who does not have VFP9 installed. Could someone please indicate how I can run an application on its own without it having to run within the VFP9 IDE Thanks In order to not to rename your project folder, visit universalthread.com and search for codes I posted that updates DE cursors' properties to point to a choosen folder outside development folders. Also remove set path to statements except for new data location and maybe repor ...Show All

  • Visual C# CheckListBox SelectedIndexChanged Event

    Hi, I have a checklist box and I have a method that is called when the SelectedIndexChanged event fires. Is there any way to know which item in the list caused the event to fire Thanks It will be the currently-selected item in the CheckedListBox, the same as with a ListBox. The event which tells you that an item has been checked is ItemCheck, which provides an ItemCheckEventArgs with the index of the item. ...Show All

  • Visual C# BitArray Constructor ?

    Hello, I will try to explain me in English… So, i use BitArray : byte [] Alarm = new byte [1]; Alarm[0] = 0xff; BitArray b = new BitArray (Alarm[0]); => Size of b : 8 bit But if i make this : byte [] Alarm = new byte [1]; Alarm[0] = 0x01; BitArray b = new BitArray (Alarm[0]); => Size of b : 1 bit. I do'nt understant this. Could somebody explain me Thanks. JOOP. this code: byte [] Alarm = new byte [1]; Alarm[0] = 0xff; BitArray b = new BitArray (Alarm[0]); will result in a size of 255. This has to do with the constructor you are using. Your passing a single byte as parameter and the closest c ...Show All

  • SQL Server What is the Flight Recorder?

    Hello, I ran into an issue with all these logs made by default. Disk space crunch leading to performance degradation. OK, I moved the log dir outside the default app volume (Script/restart) onto a 100GB drive I use for the SQL transactions logs, but. Analysis Services accumulated 20GB of logs in 2-3 days, did not clean-up the old stuff and led to disk space alerts and applications performance issues. All this with out of the box settings. The server has in the 30 to 60 connections alive around the clock with each of these connections performing queries every 2-3 seconds or so. I also use the query log function for optimisation purposes but for that one I log to table on a specific drive. I run Analysis services 64 bits ...Show All

  • Visual C++ VC8 program writing to cout much slower than VC6 program

    hi, I have the following piece of code in a program compiled using both VC8 and VC6. the only difference in the code is the deprecated iostream header. it basically just writes out a bunch of numbers to cout. I compiled and ran the programs on the same computer (P4 - 2Ghz, 1GB RAM) the VC6 program takes less than 3 seconds to go through that bit of code whereas the VC8 program takes almost 16 seconds ! can someone tell me why this is so is this common i tried the VC6 program with both single threaded, multi-threaded and multi-threaded dll . i tried the VC8 program with multi-threaded and multi-threaded dll. in all cases, the performance was the same. the VC8 version is MUCH slower. thanks, Julian. VC6 version: #include &q ...Show All

  • SQL Server Parameter Input Area on Drill Through

    Does anyone know a way to force RS to not collapse the parameter area on a drill through I searched this forum and found some related threads but nothing that covered this. I have several reports where they drill through to each other and in all cases, while they pass the parameters between, the users usually want to go directly to different products or time periods within the reports. They constantly have to expand the input area every time they go to another report. This confuses a lot of them. Is there a setting somewhere that controls this Thanks, Tim Sorry, this can't be changed in Report Manager or Report Server URL Access. If you were to use the VS Reporting controls in a custom app, you'd be able to do this. ...Show All

  • Visual Studio Factoring Factories :)

    Hi, I'd be interested to hear some advice / experience / opinion on how to create a set of related factories and allow some freedom in the way that the solutions and projects they create are organised. For example, can I build one factory with the GAT that offers to create more than one type of solution, and conversely, can I build several factories and combine their output when unfolded into a single solution. Another example: if I take the service factory and the smart client factory straight from MSDN, can I easily create one solution from the output of these two factories Thanks, Scott. Hi Tom, I have noticed the following in the 'CreateASMXSolution' recipe. I'm guess that th ...Show All

  • Visual Basic DeviceIOControl and SCSI_PASS_THROUGH_DIRECT

    Hi, I'm trying to get data from a SCSI Inquiry command in VB. I'm using DeviceIOControl with SCSI_PASS_THROUGH_DIRECT - the call goes through OK and DeviceIOControl returns 0, but I can't seem to get the expected data back - retBytes just contains 7 bytes of seemingly (but probably not) random data: (40, 4, 20, 0 , 40, 4, 20). Changing scsi.dataIn to 0 gets me 255 bytes of data, but not the data I should be getting. Any help would be greatly appreciated. Here's what I'm doing. offset as Byte is ignored for now, and fileHandle is a valid handle to \\.\F:. Private Function getVPDPage(ByVal offset As Byte, ByVal fileHandle As Long) As Byte() Dim status As Long Dim dIn As IntPtr = Marshal.AllocHGlobal(255) Dim dOut As IntPtr = Ma ...Show All

©2008 Software Development Network