visual-studio-2010

Compiled HTML Help file shows “This program cannot display…”, when pressing F1 on the debugged application

点点圈 提交于 2019-12-25 18:46:47
问题 I have this problem on my compiled html help file, which runs on Microsoft Visual Studio 2010. Note: I don't have enough reputation points to post images. Please bear with my problem. The name of the compiled html help file is GeneralHelp.chm . In order to make it appear, there are two ways: Clicking the "General" from "Help" Tab. Pressing F1 Key when the main form is only active. I don't modify the default values of the properties, but here are the c# codes for the activation: private void

Why Random loss symbol does not work well

浪子不回头ぞ 提交于 2019-12-25 18:44:42
问题 I try to make random loss from a given bit stream. Assume that I have a bit stream as 10 01 10 11 00 Now I will create a code to implement random loss. The function with two inputs are original bit stream and percent loss. Output function is output bit stream int* bitloss(int* orbit,int size_orbit,float loss_percent) { srand(time(NULL)); int* out_bitstream=(int*)malloc(sizeof(int)*size_orbit); double randval ; for(int i=0;i<size_orbit,i++) { randval = (double)rand()/(double)RAND_MAX; if

Why Random loss symbol does not work well

回眸只為那壹抹淺笑 提交于 2019-12-25 18:44:32
问题 I try to make random loss from a given bit stream. Assume that I have a bit stream as 10 01 10 11 00 Now I will create a code to implement random loss. The function with two inputs are original bit stream and percent loss. Output function is output bit stream int* bitloss(int* orbit,int size_orbit,float loss_percent) { srand(time(NULL)); int* out_bitstream=(int*)malloc(sizeof(int)*size_orbit); double randval ; for(int i=0;i<size_orbit,i++) { randval = (double)rand()/(double)RAND_MAX; if

unzip file in C# via Winzip and its cmd extension

两盒软妹~` 提交于 2019-12-25 18:36:34
问题 so I have a small chunk of code that detects files in a folder and systematically zips them after they become a certain age. I'm now working on a piece of code to unzip files of a certain date-range at user request for use in the software. My issue is that the command-line string to zip files works great, but the unzip does not... below is the excerpt of code showing how I unzip, please let me know what I should do differently to ensure unzipping. thanks! private void UnZipFile() { if

Intellisense doesn't show comments

旧时模样 提交于 2019-12-25 18:34:59
问题 If I type something in VisualStudio2010 like DataSet1. I get a list of all available Methods and Properties (Intellisense). This works fine. But if I select a method or property in this list I don't get the description of if. For Example if I have something like: public class Dummy { /// <summary> /// This is a test-method /// </summary> public string Do { get; set; } } And the usage is: Dummy dummy = new Dummy(); dummy.Do = "dummy"; At the moment when I type dummy.Do I want to have the

R/C++ Interface

徘徊边缘 提交于 2019-12-25 18:26:14
问题 How to use RCPP_MODULE(yada) in C++. My C++ program gives error if I use const char* hello( std::string who ){ std::string result( "hello " ) ; result += who ; return result.c_str() ; } RCPP_MODULE(yada) { using namespace std; function( "hello", &hello ) ; }; Error are: 1. Error 1 error C2065: 'yada' : undeclared identifier 2. Error 2 error C2448: 'RCPP_MODULE' : function-style initializer appears to be a function definition Can anyone help me in fixing these error? 回答1: Rcpp does not work

Error: expected class,delegate,enum,interface or struct

百般思念 提交于 2019-12-25 18:23:17
问题 I get the following error on the code below: expected class,delegate,enum,interface or struct. This happens when hovering on GH_ObjectResponse , what am I doing wrong? public class SettingsComponentAttributes : GH_ComponentAttributes { public SettingsComponentAttributes(IGH_Component SettingsComponent) : base(SettingsComponent) {} } public override GH_ObjectResponse RespondToMouseDoubleClick( GH_Canvas sender, GH_CanvasMouseEvent e) { ((SettingsComponent)Owner).ShowSettingsGui(); return GH

Button ClickEvent is not triggered

徘徊边缘 提交于 2019-12-25 18:17:23
问题 Afternoon All, I have two buttons on my web page that is used to lock and unlock a web page so that a user can lock the page and edit this without other users being able to access the record and then unlock this record so other users can edit this. The problem i have is that the buttons doesnt work and im not to sure why. I am using image buttons but it looks like the event is not being triggered, i cant see the problem and its driving me crazy. Can some one please take a look at my code...

What are the units for Dialog MFC Resource Measurements

牧云@^-^@ 提交于 2019-12-25 18:14:09
问题 In this declaration syntax from https://msdn.microsoft.com/en-us/library/windows/desktop/aa381003(v=vs.85).aspx nameID DIALOG x, y, width, height [optional-statements] {control-statement . . . } what are the units used for width and height? I assumed that they were pixels, and so set my window to 640x480. However, I now have a window that is too big for my needs. 回答1: The units are dialog units as explained in the DIALOGEX resource definition statement. The DIALOG is deprecated. Excerpt: x

vb.net: listbox.items.add() throws exception in same class

寵の児 提交于 2019-12-25 18:12:58
问题 I'm not even sure I understand this situation enough to come up with a proper title. I come from a modest understanding of VB6 and having to climb a steep learning curve for VB 2010. I am trying to create a multi-client server program that will communicate with my Enterprise iPhone app. I found a relatively simple example to build upon here: http://www.strokenine.com/blog/?p=218. I have been able to modify the code enough to make it work with my app, but with one glitch: I can't get access to