[Solved] SSRS report parameter

A few things to check: SetParameters takes IEnumerable<ReportParameter> not a single ReportParameter object. Call it like this instead: serverReport.SetParameters(new ReportParameter[] { ReportParameter(“dt1”, date.ToString()) } ); Make sure that the parameter does not have the available values filled in as well as the default value. If the date passed is not one of the valid values … Read more

[Solved] CreateProcess creating process, but game is not working

You should start the game in it’s own directory like so: string strDir = game_path.substr(0, game_path.find_last_of(“/\\”)); //Get the process dir name //STart the process in its dir if (!CreateProcess(game_path.c_str(), NULL, NULL, NULL, FALSE, CREATE_SUSPENDED, NULL, strDir.c_str(), &siLoadee, &m_piLoadee)) 0 solved CreateProcess creating process, but game is not working

[Solved] Using C# and asp read and write xml [closed]

Take a look at the docs on MSDN, there are examples at the bottom. http://msdn.microsoft.com/en-us/library/system.xml.xmlreader.aspx for getting a dataset from XML see this MSDN article http://msdn.microsoft.com/en-us/library/fx29c3yd.aspx the final part – regarding the writing back to multiple tables can be see from this walk through on MSDN http://msdn.microsoft.com/en-us/library/4esb49b4.aspx 6 solved Using C# and asp read and … Read more

[Solved] I do not know ‘glibc detected’ in C

It means you have heap corruption in your program. You likely allocate some memory using malloc, but write outside the actual bounds, corrupting the heap. When you call free, glibc detects the corruption and reports it (specifically, the size of the next free chunk is overwritten). You should definitely fix this problem. Valgrind can be … Read more

[Solved] Why the usage of ++ is different in c#?

This: newSequence = deduction.Sequence++; Is equivalent to this: newSequence = deduction.Sequence; deduction.Sequence = deduction.Sequence + 1; Make more sense now? If you did this: newSequence = ++deduction.Sequence; It turns into this: deduction.Sequence = deduction.Sequence + 1; newSequence = deduction.Sequence; As others have said, you are probably not looking to change deduction.Sequence, so you want to … Read more

[Solved] Language C: convert a number grade into a letter grade

Just use a string a look up the appropriate entry: char convert(int numberGrade ){ if (numberGrade >=0 && numberGrade <= 20) { // 012345678901234567890 return “FFFFFFEEDDCCCBBBAAAAA”[numberGrade]; } return ‘X’ } EDIT Also you need to move the call to the convert function After you enter in the value. See below: int main(){ int note; printf(“Quelle … Read more

[Solved] how to print an array backwards

You’re very close. Hope this helps. #include <iostream> using namespace std; int main(int argc, char *argv[]) { int numbers[5]; /* Get size of array */ int size = sizeof(numbers)/sizeof(int); int val; for(int i = 0; i < size; i++) { cout << “Enter a number: “; cin >> val; numbers[i] = val; } /* Start … Read more

[Solved] Structs in C Error [closed]

You have several problems: Format specifiers start with a % sign. So change scanf(“d”, &element[j].age); to scanf(“%d”, &element[j].age); and scanf(“s”, &element[j].name); to scanf(“%s”, element[j].name); Wondering why I removed the & from the above scanf? It is because array names gets converted to a pointer to its first element. These printf(“%d. Fav number: %d\n”, k, &element[k].age); … Read more

[Solved] DateTime.ParseExact() – DateTime pattern ‘y’ appears more than once with different values

Your format should be yyyy-MM-dd HH:mm:ss.fff string testDateRaw = @”2014-05-21 10:08:15.965″; string format = “yyyy-MM-dd HH:mm:ss.fff”; DateTime testDate = DateTime.ParseExact(testDateRaw, format, CultureInfo.InvariantCulture); System.Console.WriteLine(testDate); See: Custom Date and Time Format Strings solved DateTime.ParseExact() – DateTime pattern ‘y’ appears more than once with different values

[Solved] Manipulating std::string

memset(data,0,1500); // This might not be correct but it works fine It isn’t correct, and it doesn’t “work fine”. This is Undefined Behaviour, and you’re making the common mistake of assuming that if it compiles, and your computer doesn’t instantly catch fire, everything is fine. It really isn’t. I’ve done something which I wasn’t supposed … Read more

[Solved] POINTER keyword in FORTRAN equivalent in C/C++

According to the above page, the correspondence between Cray pointer and C pointer may be something like this (note, however, that Cray pointer is not the same as standardized pointer in modern Fortran). Fortran: integer a( 3 ), i integer*8 ptr pointer( ptr, b(*) ); integer b a(:) = 10 print *, “a = “, … Read more